Persist queued jobs to disk, import leftover MP4s from Comfy history, and do not mark a run complete until the saved video exists. Co-authored-by: Cursor <cursoragent@cursor.com>
6 lines
152 B
TypeScript
6 lines
152 B
TypeScript
export default defineNitroPlugin(() => {
|
|
for (const pending of listPendingJobs()) {
|
|
void completePendingIfReady(pending).catch(() => null)
|
|
}
|
|
})
|