uncap backfill concurrency — use key's actual limit

This commit is contained in:
russell@unturf.com 2026-02-18 19:30:46 -05:00
parent e1abca4a66
commit 696a7b853b

View file

@ -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 = min(1, max(1, int(key_info.get("concurrency", 1))))
concurrency = 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