Repository navigation
fix(music-server): bound automatic engine restart attempts - #256
Merged
timoncool merged 1 commit intoNov 16, 2026
Merged
Conversation
AIwork4me
marked this pull request as ready for review
November 16, 2026 00:59
6 tasks
Owner
|
Merged into the 4.1.0 branch, thank you. One change on top of it: after five failed starts the engine is not left stopped, it is tried every five minutes. Otherwise a cause that goes away by itself would not bring it back: a model file put back into the folder, memory another program gave up. The log line says so once. |
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.
Why
An engine that cannot start can be automatically relaunched on every supervisor poll (roughly every two seconds). Persistent errors, such as a missing runtime dependency, do not resolve through repeated spawning and can flood logs. This was observed as 25 attempts during Windows testing in #242.
What changed
EngineStartBackoffpolicy used only by the existing Rust automatic engine supervisor./engine/restartpath, cancellation/progress APIs, engine adapter abstraction, and existing CUDA/Vulkan/CPU packaging.Only
crates/music-server/src/lib.rsand the newengine_start_backoff.rsare changed. No HIP-specific code, GPU dependencies, installer changes, frontend changes, or model files.Validation
4a8186eb(run 43687431936). That run does not count as exact-head CI for this rebased standalone change.6b4a10bd14a9004e1b075cd93996792d6eb095a1is run 43783205612, SUCCESS: Windows Rust 526 passed / 0 failed / 7 ignored, Linux Rust 520 passed / 0 failed / 4 ignored, frontend 213 passed / 0 failed (62 test files); frontend build and TypeScript checks passed.Scope / contribution requirements
Based on the latest upstream
main(0817d319); reviewed the repository'sAGENTS.mdand MIT license. The change adds no Python/Node runtime dependency, does not special-case any model or provider, and does not commit runtime user data.Extracted at the maintainer's suggestion in PR #242 discussion. After this standalone change is accepted, the overlapping watchdog change in #242 should be reconciled without losing the HIP work.