perf: parallelize scout opportunity creation and remove sleep(2) (#101) #156

Merged
cal merged 2 commits from issue/101-perf-parallelize-scout-opportunity-creation-and-re into main 2026-04-08 10:26:19 +00:00

2 Commits

Author SHA1 Message Date
cal
e5ec88f794 Merge branch 'main' into issue/101-perf-parallelize-scout-opportunity-creation-and-re
All checks were successful
Ruff Lint / lint (pull_request) Successful in 15s
2026-04-08 10:26:10 +00:00
Cal Corum
8ddd58101c perf: parallelize scout opportunity creation and remove sleep(2) (#101)
All checks were successful
Ruff Lint / lint (pull_request) Successful in 12s
Closes #101

Replace sequential for-loop with asyncio.gather() so all scout
opportunities are created concurrently. Remove asyncio.sleep(2) that
added ~8s of post-display delay for multi-pack opens. create_scout_opportunity()
already guards against empty pack_cards with an early return.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-08 01:02:10 -05:00