ML Orchestration: live stage progress, graceful degradation, and timeout fix#321
Closed
Copilot wants to merge 4 commits into
Closed
ML Orchestration: live stage progress, graceful degradation, and timeout fix#321Copilot wants to merge 4 commits into
Copilot wants to merge 4 commits into
Conversation
…untimeError graceful-degradation test
Copilot
AI
changed the title
[WIP] Transition analysis API to asynchronous inference orchestrator
ML Orchestration: live stage progress, graceful degradation, and timeout fix
Jun 16, 2026
Collaborator
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.
The analysis pipeline used a mock-style 30-second process timeout and swallowed only
FileNotFoundError/ValueError, leaving real ML inference jobs killed mid-run and unexpected runtime errors uncaught. The workspace UI showed no stage-level progress during analysis.Changes
Rust — timeout (
src-tauri/src/main.rs)ANALYSIS_PROCESS_TIMEOUTraised 30 s → 600 s to match the engine's max audio duration (15 min / 900 s).Python — graceful degradation (
api.py)except (FileNotFoundError, ValueError)→except Exceptioninrun_analysis_job_updatessoMemoryError,RuntimeError(GPU OOM, etc.) also return a typedengine_unavailableenvelope instead of crashing the orchestrator.logger.exception(...)before envelope conversion to preserve full traceback for debugging.React UI — live stage progress (
WorkspaceStates.tsx,App.tsx)LoadingStategains optionalprogressLabelandprogressPercentprops. When the engine emits a stage update (e.g."Separating stems… (45%)"), the workspace card renders the label and an accessible<Progress>bar; falls back to the static pulse text when absent.renderWorkspaceState()threadsjobStatus?.progressLabel/jobStatus?.progressPercentthrough toLoadingState.Tests
getByText→getAllByText) caused by "Queued for analysis" now appearing in both the status badge and the workspace card simultaneously.progressMessagefallback switch (state-derived label when engine omitsprogressLabel).RuntimeErrorfrom the separator returns a typed failure envelope (not an uncaught exception).