Queue recovery and failures (#53) #108
No reviewers
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
needs-info
needs-triage
question
ready-for-agent
ready-for-human
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
crowmaki/ai-studio!108
Loading…
Reference in a new issue
No description provided.
Delete branch "issue-53-queue-recovery"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #53. Part of #24 (User Stories 130–134).
What changes
A crash, a restart or trouble with ComfyUI no longer loses work or runs it twice.
prompt_id:prompt_id.node_errors, orexecution_error.POST /api/freeand submits the job once more. A new app setting controls this ("Retry a job once…" in the ComfyUI section, on by default).job.client_id,job.waiting_reasonandjob.interrupted.Tests
The fake ComfyUI can now hold a prompt until it is released (
Block), restart and forget everything, run out of GPU memory, and answerGET /queueandPOST /free.tests/queue_recovery.rsuses it to cover:node_errorsand anexecution_error, each with no retryThe Not-ready tests in
render_worker.rs,takes.rsandtile_generation.rsnow check that the job waits, and that other Takes render meanwhile.cargo test --workspace --all-features,bun test srcandbun run checkall pass.Decisions and known gaps
land_renditionfailure path./promptcall that gets no answer while ComfyUI still validates the prompt could be taken for lost and submitted again./freeand the retry resets the retry budget.Screenshots
ComfyUI offline: the jobs wait, and the status bar and the Queue panel both say so.

A workflow that is Not ready: the job waits with the reasons on its row.

The Project reopened with work in the queue: the queue is paused, with a banner and Resume.

The new setting in the ComfyUI section.
