WP-05: Legacy Upload Script Update #92
Labels
No Label
ai-changes-requested
ai-failed
ai-merged
ai-pr-opened
ai-reviewed
ai-reviewing
ai-reviewing
ai-working
bug
enhancement
evolution
performance
phase-0
phase-1a
phase-1b
phase-1c
phase-1d
security
tech-debt
todo
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cal/paper-dynasty-database#92
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Apply the same concurrency pattern to
check_cards_and_upload.pyfor users who still use the legacy script.Repo:
card-creationPhase: 0 (Render Pipeline Optimization)
Dependencies: WP-04
Complexity: S
Current State
check_cards_and_upload.pylines 150-293: identical sequential pattern topd_cards/core/upload.pyImplementation
asyncio.gather+Semaphore(same pattern as WP-04)Files
check_cards_and_upload.pyTests
Acceptance Criteria
Plan reference:
docs/prd-evolution/PHASE0_PROJECT_PLAN.mdWP-05PR opened in
card-creationrepo: cal/paper-dynasty-card-creation#26Approach: Replaced the sequential
for x in all_playersloop inmain()withasyncio.gather+asyncio.Semaphore(CONCURRENCY). Addedfunctools.partialto offload synchronous boto3 S3 PUT calls to thread pool vialoop.run_in_executor. Addedreport_progress()with lock-protected counter, prints every 20 completions. Increased fetch timeout from 6s → 10s. AddedCONCURRENCY = 8constant. 1 file changed, 179 insertions / 124 deletions.Completed. Legacy script updated alongside WP-04 in
card-creationrepo:979f308—feat: concurrent upload pipeline and benchmarks (Phase 0)(includescheck_cards_and_upload.pyrefactor)8bddf31—feat: configurable API URL for local high-concurrency card rendering(addsPD_API_URLenv var support)All acceptance criteria met:
asyncio.gather+Semaphore,run_in_executorfor boto3) ✅