Skip to content

Commit 38ac162

Browse files
fix: add a batch size to the bulk_update of OrganisationSubscriptionInformationCache objects (#6456)
1 parent a25581b commit 38ac162

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

api/app/settings/common.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1469,3 +1469,5 @@
14691469
)
14701470

14711471
PYLON_IDENTITY_VERIFICATION_SECRET = env.str("PYLON_IDENTITY_VERIFICATION_SECRET", None)
1472+
1473+
OSIC_UPDATE_BATCH_SIZE = env.int("OSIC_UPDATE_BATCH_SIZE", default=500)

api/organisations/subscription_info_cache.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ def update_caches(update_cache_entities: typing.Tuple[SubscriptionCacheEntity, .
6060
"chargebee_updated_at",
6161
"influx_updated_at",
6262
],
63+
batch_size=settings.OSIC_UPDATE_BATCH_SIZE,
6364
)
6465

6566

0 commit comments

Comments
 (0)