Queue more video jobs while a long shot list is generating, and restore that job from Output.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Towsty
2026-08-27 22:02:41 -05:00
co-authored by Cursor
parent e3cf2f4b53
commit dec1a49bef
9 changed files with 991 additions and 186 deletions
+11
View File
@@ -0,0 +1,11 @@
import { listStudioJobs } from '~/server/utils/studioQueue'
export default defineEventHandler((event) => {
const { owner } = assertLibraryOwner(event)
const id = String(getRouterParam(event, 'id') || '')
const job = listStudioJobs(owner).find(item => item.id === id)
if (!job) {
throw createError({ statusCode: 404, statusMessage: 'Queued job not found' })
}
return job
})