Recover finished Comfy videos after relay restarts.

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>
This commit is contained in:
Towsty
2026-08-25 18:43:15 -05:00
co-authored by Cursor
parent f0f80b5873
commit b7196ecde3
10 changed files with 342 additions and 77 deletions
+5
View File
@@ -0,0 +1,5 @@
export default defineNitroPlugin(() => {
for (const pending of listPendingJobs()) {
void completePendingIfReady(pending).catch(() => null)
}
})