• Aryan Noshirvani's avatar
    Fix /remix hanging indefinitely on submit · 132fa2cd
    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: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_01BCxXmJVvDFJVHTUi4QgNzi
    132fa2cd
Name
Last commit
Last update
deploy/systemd Loading commit data...
scripts Loading commit data...
src Loading commit data...
tests Loading commit data...
.env.example Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
Dockerfile Loading commit data...
README.md Loading commit data...
docker-compose.yml Loading commit data...
requirements.txt Loading commit data...
setup.sh Loading commit data...