Stop a deleted video chain from keeping the GPU.

Interrupt now clears Comfy, and a missing shot list no longer continues to the next extension.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Towsty
2026-08-30 13:07:17 -05:00
co-authored by Cursor
parent c88a8494d5
commit 9f82377b52
4 changed files with 77 additions and 16 deletions
+7
View File
@@ -6481,8 +6481,12 @@ async function cancelJob() {
? 'video'
: studioMode.value === 'edit' ? 'edit' : 'video'
const id = kind === 'edit' ? editJobId.value : videoJobId.value
const studioId = outputStudioJobId.value
try {
await $fetch('/api/interrupt', { method: 'POST', body: { jobId: id, kind } })
if (studioId) {
await $fetch(`/api/studio-queue/${studioId}`, { method: 'DELETE' }).catch(() => null)
}
if (kind === 'edit') editStatusMessage.value = 'Edit cancelled. GPU is idle — edit again.'
else statusMessage.value = 'Job cancelled. GPU is idle — generate again.'
} catch (error: any) {
@@ -6504,6 +6508,9 @@ async function cancelJob() {
stopTimer('video')
stopListen('video')
clearActiveJob('video')
outputStudioJobId.value = ''
activeQueueId.value = ''
try { localStorage.removeItem(QUEUE_STORE) } catch { /* ignore */ }
}
}
</script>