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 -2
View File
@@ -5392,8 +5392,12 @@ async function refreshStudioQueue() {
async function cutInStudioJob(id: string) {
try {
await $fetch(`/api/studio-queue/${id}/cut-in`, { method: 'POST' })
toast('This job will run after the current shot, as its own clip.')
const result = await $fetch<{ started?: boolean; deferred?: boolean }>(`/api/studio-queue/${id}/cut-in`, { method: 'POST' })
toast(result.started
? 'Starting now.'
: (result.deferred
? 'This job will run after the current shot, as its own clip.'
: 'Queued to start as soon as the GPU is free.'))
await refreshStudioQueue()
} catch (error: any) {
toast(error?.data?.statusMessage || error?.statusMessage || 'Could not move that job next')