Let failed studio jobs retry instead of sitting in the queue with only Remove.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Towsty
2026-09-02 08:19:21 -05:00
co-authored by Cursor
parent bdec8872b6
commit 1314e8e89f
4 changed files with 88 additions and 4 deletions
@@ -0,0 +1,7 @@
import { retryStudioJob } from '~/server/utils/studioQueue'
export default defineEventHandler(async (event) => {
const { owner } = assertLibraryOwner(event)
const id = String(getRouterParam(event, 'id') || '')
return await retryStudioJob(owner, id)
})