Queue recovery and failures #53
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#53
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Parent
#24
What to build
A crash, restart or ComfyUI problem never loses or duplicates work. See User Stories 130–134.
Acceptance criteria
prompt_id, collected from history, or requeued at the head of its class as an interrupted attempt/free(a setting)node_errors,execution_error, OOM and offlineBlocked by
Note from #39 (PR #89): the render worker runs preflight before each submission. In #39, a job whose workflow is Not ready fails at once: the job goes to
failedwith the Not-ready reasons as its error, and nothing is sent to ComfyUI. An offline ComfyUI also fails the job ("ComfyUI is not reachable: …").#24 says that jobs for a Not-ready workflow should wait, and this ticket's acceptance criteria include "ComfyUI offline is a waiting state with re-probing; jobs for a Not-ready workflow wait". So this ticket should replace the failure with a waiting state. The code is in
run_jobincrates/studio-core/src/worker.rs(thepreflightcheck beforeclient.events). The tests that pin today's behaviour area_workflow_that_is_not_ready_fails_its_job_without_submitting_itandan_unreachable_comfyui_fails_the_jobincrates/studio-core/tests/render_worker.rs.