Queue durable Studio 2 jobs with sticky identity and saved metadata

This commit is contained in:
Towsty
2026-09-10 20:56:37 -05:00
parent bd82f5bd5f
commit 70b6b70fcd
12 changed files with 374 additions and 10 deletions
+3
View File
@@ -0,0 +1,3 @@
import { readRecord } from '../../utils/studio2/store';
import { cancelStudioJob } from '../../utils/studioQueue';
export default defineEventHandler(async (event) => { const { owner } = assertLibraryOwner(event), body = await readBody(event), r = readRecord(owner, String(body.id)); assertFolderAccess(event, r.request.folderId); await cancelStudioJob(owner, r.queueId); return { ok: true }; });