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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user