Repository navigation
Conversation
…are offered back - Stopping a song marks its job cancelled when the engine accepts the stop, instead of leaving it "running" until the engine reaches a checkpoint, so every window drops its card. - Requests the engine has taken are kept in music-jobs.json until their job ends. What is left at the next start is shown as an "Interrupted" card with Make again / Remove; nothing starts on its own. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…s again Replaces music-jobs.json and the /v1/music/interrupted routes. A job is saved to the library database as soon as the engine takes it and its status is written when it ends. At the next start, jobs still queued or running were cut off by the studio closing: each is marked cancelled (its message names the job that replaced it) and started again, oldest first, at most 3 times. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
A stopped or failed job was kept in the database but only the cut-off ones were read back, so after a restart the others answered "not found". Their message is now stored too, and the newest 200 are loaded at start. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
GET /v1/music/jobs/ended lists them (they survive restarts, kept in the
library); DELETE /v1/music/jobs/{id} removes one for good.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…service asks first
The second press of the button ("Reset GPU") stopped every job the service
had, including another window's and an agent's, with no question. Cancel All
now stops only this window's songs, found by the mark each request carries.
The second press is "Stop all on the server" and says how many jobs it
will stop before it does.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Merged
Owner
|
Done in #51 (merged), shipped in 3.5.0: quitting with songs in progress asks first and stops them; a cancelled song is saved as cancelled at once. |
timoncool
added a commit
that referenced
this pull request
Nov 5, 2026
Fixes since 3.8.3: #194 flash attention off on Blackwell-or-newer, #54 KV cap on any 8 GB-or-less card, #47 in-memory FLAC, #192 buried-vocal karaoke, #189 SRT line ends, #184 kept max duration, #198 autogen language, #177 checkpoint names, #180 update-screen lines, #48 score header, #195 typo; a 1980s Eurodisco LoRA. Also records 3.8.3 (all-variants engines, #181), which shipped without an entry.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two problems with songs made while the studio is open, seen when an agent (MCP) drives it and when the studio is closed mid-song:
1. A stopped song kept showing as running. The service passed the stop to the engine and kept the job's status as
running. The engine ends a job only at its next checkpoint (a queued one when its turn comes;engine.logshows "Cancel requested" while NAR steps carry on), so every window kept the card. Now the job is markedcancelledas soon as the engine accepts the stop, and the windows drop the card. A job the engine already finished is not changed. The engine may still spend its current step; that is the engine's own limit.2. A song in progress vanished when the studio closed. The queue lives in the engine process and the job list in memory.
music_jobs: its request, status and attempt count) as soon as the engine takes it, and its status is written when it ends.queuedorrunningwere cut off by the studio closing. Each is markedcancelled(its message names the job that replaced it) and started again from its saved request, oldest first, once the engine answers (up to 3 times per song, so a request that takes the engine down cannot loop). If the engine does not answer within 3 minutes they stay as they are for the next start.Verified (macOS, on top of #51's changes):
cargo test -p music-server --lib285 passed, including a test that a job cut off is found once, oldest first, and not again after it is replaced;tscand vitest pass. Not verified: the restart itself against a live engine, i.e. closing the studio mid-song and seeing it start again. This branch is based on main and was only type-checked here (RUSTUP_TOOLCHAIN=stable; tests do not build on main on macOS).🤖 Generated with Claude Code