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 -2
View File
@@ -144,8 +144,13 @@ export async function queuePrompt(graph: unknown, clientId: string) {
}
export async function interruptComfy() {
const res = await comfyFetch('/interrupt', { method: 'POST' })
return res.ok
const res = await comfyFetch('/interrupt', { method: 'POST' }).catch(() => null)
await comfyFetch('/queue', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ clear: true })
}).catch(() => null)
return Boolean(res?.ok)
}
export async function fetchHistory(promptId: string) {