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