Keep pause across Coolify restarts, apply the chosen still from the image picker, and remux clips with Range/faststart so finished video can be scrubbed.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { listPendingJobs } from '~/server/utils/pending'
|
||||
import { listOwnersWithQueues, listShotQueues, pendingSegmentCount } from '~/server/utils/shotQueue'
|
||||
import { kickStudioQueue, listOwnersWithStudioQueues, listStudioJobs } from '~/server/utils/studioQueue'
|
||||
import { isStudioQueuePaused, kickStudioQueue, listOwnersWithStudioQueues, listStudioJobs } from '~/server/utils/studioQueue'
|
||||
import { startQueueBurst } from '~/server/utils/videoChain'
|
||||
|
||||
export default defineNitroPlugin(() => {
|
||||
@@ -15,11 +15,12 @@ export default defineNitroPlugin(() => {
|
||||
}
|
||||
}
|
||||
for (const owner of listOwnersWithQueues()) {
|
||||
if (isStudioQueuePaused(owner)) continue
|
||||
for (const queue of listShotQueues(owner)) {
|
||||
if (claimedQueueIds.has(queue.id)) continue
|
||||
if (!queue.autoRun) continue
|
||||
if (queue.stopAfterCurrent) continue
|
||||
if (queue.status === 'complete') continue
|
||||
if (queue.status === 'paused' || queue.status === 'complete' || queue.status === 'error') continue
|
||||
if (pendingQueueIds.has(queue.id)) continue
|
||||
if (!queue.currentClipId || pendingSegmentCount(queue) === 0) continue
|
||||
void startQueueBurst(owner, queue.id, 'all').catch(() => null)
|
||||
|
||||
Reference in New Issue
Block a user