Pause only the current shot batch so a new Generate can run when Beast is idle, without auto-resuming the held list.
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 { isStudioQueuePaused, kickStudioQueue, listOwnersWithStudioQueues, listStudioJobs } from '~/server/utils/studioQueue'
|
||||
import { kickStudioQueue, listOwnersWithStudioQueues, listStudioJobs } from '~/server/utils/studioQueue'
|
||||
import { startQueueBurst } from '~/server/utils/videoChain'
|
||||
|
||||
export default defineNitroPlugin(() => {
|
||||
@@ -15,7 +15,6 @@ 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
|
||||
|
||||
Reference in New Issue
Block a user