-
Aryan Noshirvani authored
Root cause of the "failed to submit" report: identify_audio (real Shazam/AcoustID network calls) was running synchronously in the POST /remix request handler, once per uploaded file, before the response was ever sent. Confirmed via server logs that a single Shazam call takes ~30s to time out on a miss - with 2 files that's a minute-plus of the browser just waiting on fetch() with nothing to show for it, easily read as "broken." Moved identify_audio into the background job (render_remix_sync), where it belongs alongside the rest of the slow pipeline (BPM detection, Gemini planning, Demucs). The API handler now only does fast local I/O - save the uploads, create the job row, queue the background task, return immediately. Verified with a real headless-browser test (Playwright) driving the actual console UI end-to-end, not just curl/pytest against the API: submit now returns in well under a second and the job progresses through queued -> planning -> separating -> ... -> done while the page polls, exactly as designed. Co-Authored-By:
Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BCxXmJVvDFJVHTUi4QgNzi
7d812f92
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| api | ||
| core | ||
| services | ||
| telegram_bot | ||
| telegram_worker |