From dec1a49bef6b6bdac07ef7d322211cbc70052021 Mon Sep 17 00:00:00 2001 From: Towsty Date: Thu, 27 Aug 2026 22:02:41 -0500 Subject: [PATCH] Queue more video jobs while a long shot list is generating, and restore that job from Output. Co-authored-by: Cursor --- pages/index.vue | 352 ++++++++++-- server/api/generate.post.ts | 160 +----- server/api/studio-queue.get.ts | 12 + server/api/studio-queue/[id].delete.ts | 8 + server/api/studio-queue/[id].get.ts | 11 + server/api/studio-queue/[id]/cut-in.post.ts | 8 + server/plugins/resume-queues.ts | 12 + server/utils/studioQueue.ts | 575 ++++++++++++++++++++ server/utils/videoChain.ts | 39 +- 9 files changed, 991 insertions(+), 186 deletions(-) create mode 100644 server/api/studio-queue.get.ts create mode 100644 server/api/studio-queue/[id].delete.ts create mode 100644 server/api/studio-queue/[id].get.ts create mode 100644 server/api/studio-queue/[id]/cut-in.post.ts create mode 100644 server/utils/studioQueue.ts diff --git a/pages/index.vue b/pages/index.vue index 2a8ba1b..b079530 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -25,9 +25,9 @@ - Queue{{ queuePendingCount }} + Queue{{ queueBadgeCount }} Sign out @@ -58,7 +58,7 @@

Input

{{ studioMode === 'edit' ? 'Drop the still to edit. An optional second still applies image 2 onto image 1. Files leave the desktop after save.' - : 'Drop a still, describe the motion, then send the job to the desktop GPU.' }}

+ : 'Drop a still, describe the motion, then send the job. Generate stays available — a long shot list takes one queue slot, and you can line up more while it runs.' }}

+

The current job keeps running in Output. This submit waits in the job queue.

{{ editBlockReason }}

+
+

Job queue

+

A long shot script is one slot. Run next inserts after the current shot as its own clip, then the original sequence continues.

+
    +
  • +
    +

    {{ job.name }}

    +

    + {{ studioJobStatusLabel(job) }} + · {{ job.shotCount }} shot{{ job.shotCount === 1 ? '' : 's' }} +

    +
    + + +
  • +
+
+

Held jobs

Comfy was still busy after 3 minutes. Click one to restore the still, prompt, and settings.

@@ -686,6 +728,17 @@

Output

+