cap backfill concurrency at 2 — 14 simultaneous large payloads crashes API
This commit is contained in:
parent
696a7b853b
commit
535e57896b
1 changed files with 1 additions and 1 deletions
|
|
@ -234,7 +234,7 @@ def backfill_karaoke_async(shop_id, session_factory, app_settings):
|
|||
# Query account concurrency from unsandbox API — abort if keys are bad
|
||||
try:
|
||||
key_info = validate_keys(pk, sk)
|
||||
concurrency = max(1, int(key_info.get("concurrency", 1)))
|
||||
concurrency = min(2, max(1, int(key_info.get("concurrency", 1))))
|
||||
except Exception as e:
|
||||
log.error("Backfill aborted — unsandbox keys invalid or expired for shop %s: %s", shop.name, e)
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue