Finish the current video shot list before starting the next queued video.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Towsty
2026-08-30 07:24:47 -05:00
co-authored by Cursor
parent 61d711f989
commit 18f350c32a
5 changed files with 95 additions and 32 deletions
+2 -1
View File
@@ -474,11 +474,12 @@ export function ensurePendingWatch(pending: PendingJob) {
await onLiveVideoSettled(job)
return
}
if (job.status === 'complete') {
if (job.status === 'complete' && lastShot) {
await onLiveVideoSettled(job)
return
}
if (!lastShot) {
if (job.status === 'complete') job.status = 'running'
const { continueQueuedExtensionsIfNeeded } = await import('~/server/utils/videoChain')
await continueQueuedExtensionsIfNeeded(job)
}