Unstick studio queue when Ready but waiting jobs will not start.

A failed held shot-batch no longer blocks waiting work, ghost Comfy pending no longer freezes Start now, and Start now force-starts when the GPU is idle.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Towsty
2026-09-04 14:14:17 -05:00
co-authored by Cursor
parent 1155edc3bd
commit 91855a0103
3 changed files with 84 additions and 15 deletions
+6 -1
View File
@@ -852,7 +852,12 @@ async function cutIn(job: StudioJobRow) {
busyId.value = job.id
error.value = ''
try {
await $fetch(`/api/studio-queue/${job.id}/cut-in`, { method: 'POST' })
const result = await $fetch<{ started?: boolean; deferred?: boolean }>(`/api/studio-queue/${job.id}/cut-in`, { method: 'POST' })
forceClearNote.value = result.started
? 'Starting now.'
: (result.deferred
? 'This job will run after the current shot.'
: 'Queued to start when the GPU is free.')
await loadQueues()
} catch (err: any) {
error.value = err?.data?.statusMessage || err?.statusMessage || err?.message || 'Could not move that job next'