qontract-reconcile 0.10.2.dev145__py3-none-any.whl → 0.10.2.dev146__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: qontract-reconcile
3
- Version: 0.10.2.dev145
3
+ Version: 0.10.2.dev146
4
4
  Summary: Collection of tools to reconcile services with their desired state as defined in the app-interface DB.
5
5
  Project-URL: homepage, https://github.com/app-sre/qontract-reconcile
6
6
  Project-URL: repository, https://github.com/app-sre/qontract-reconcile
@@ -208,7 +208,7 @@ reconcile/external_resources/metrics.py,sha256=KiBjMUaN_z0cSkF_7Ar_a8RiuiwVqjyMc
208
208
  reconcile/external_resources/model.py,sha256=hmb42GyIUn09DSCAik2zlWZ1x9eZzYy-_6NSCU-sZ5Y,13875
209
209
  reconcile/external_resources/reconciler.py,sha256=wB8cB5pmqDJ1_t5_Aly4mrULGnI3OQaKqUZCB_Z9RWw,9573
210
210
  reconcile/external_resources/secrets_sync.py,sha256=ZDxzGZ6wC4zxLhA7-L39xDRH6rzUM285gytuzmRQdlw,16208
211
- reconcile/external_resources/state.py,sha256=gF3ACdl7YiUlbQ4uEGrD6i_Txxqr6mT9f8IFlTQ-8dY,13176
211
+ reconcile/external_resources/state.py,sha256=Hyc3hszY1NFWg3t9QSXL2F5bRs0vP2FNDWzTGrHJsmE,13387
212
212
  reconcile/fleet_labeler/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
213
213
  reconcile/fleet_labeler/dependencies.py,sha256=MFiSfT25Ks0X3iQxwayNvFX_l6bQi97f3IiaNR1wtHc,3173
214
214
  reconcile/fleet_labeler/integration.py,sha256=HGlUJe5BCfAgk7YCxxsIteB8LH1pL8led-KfaIVh214,14614
@@ -797,7 +797,7 @@ tools/saas_promotion_state/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJ
797
797
  tools/saas_promotion_state/saas_promotion_state.py,sha256=UfwwRLS5Ya4_Nh1w5n1dvoYtchQvYE9yj1VANt2IKqI,3925
798
798
  tools/sre_checkpoints/__init__.py,sha256=CDaDaywJnmRCLyl_NCcvxi-Zc0hTi_3OdwKiFOyS39I,145
799
799
  tools/sre_checkpoints/util.py,sha256=zEDbGr18ZeHNQwW8pUsr2JRjuXIPz--WAGJxZo9sv_Y,894
800
- qontract_reconcile-0.10.2.dev145.dist-info/METADATA,sha256=Vv7MIziQ6gUpVdVo0qHBWdQeFDG6Eh9er8-hXsbqqsI,24627
801
- qontract_reconcile-0.10.2.dev145.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
802
- qontract_reconcile-0.10.2.dev145.dist-info/entry_points.txt,sha256=5i9l54La3vQrDLAdwDKQWC0iG4sV9RRfOb1BpvzOWLc,698
803
- qontract_reconcile-0.10.2.dev145.dist-info/RECORD,,
800
+ qontract_reconcile-0.10.2.dev146.dist-info/METADATA,sha256=bofZzVC5xjHk0OzPD8ZWg1IakABpZVUcF1mETGPI_7g,24627
801
+ qontract_reconcile-0.10.2.dev146.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
802
+ qontract_reconcile-0.10.2.dev146.dist-info/entry_points.txt,sha256=5i9l54La3vQrDLAdwDKQWC0iG4sV9RRfOb1BpvzOWLc,698
803
+ qontract_reconcile-0.10.2.dev146.dist-info/RECORD,,
@@ -300,11 +300,17 @@ class ExternalResourcesStateDynamoDB:
300
300
  """
301
301
  logging.debug("Getting Managed resources from DynamoDb")
302
302
  partials = {}
303
- for item in self.aws_api.dynamodb.boto3_client.scan(
304
- TableName=self._table, ProjectionExpression=self.PARTIALS_PROJECTED_VALUES
305
- ).get("Items", []):
306
- s = self.adapter.deserialize(item, partial_data=True)
307
- partials[s.key] = s
303
+ paginator = self.aws_api.dynamodb.boto3_client.get_paginator("scan")
304
+ pages = paginator.paginate(
305
+ TableName=self._table,
306
+ ProjectionExpression=self.PARTIALS_PROJECTED_VALUES,
307
+ ConsistentRead=True,
308
+ PaginationConfig={"PageSize": 1000},
309
+ )
310
+ for page in pages:
311
+ for item in page.get("Items", []):
312
+ s = self.adapter.deserialize(item, partial_data=True)
313
+ partials[s.key] = s
308
314
  return partials
309
315
 
310
316
  def get_all_resource_keys(self) -> set[ExternalResourceKey]: