Reattach Comfy watchers after refresh so pending jobs finish and save.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Towsty
2026-08-27 08:09:20 -05:00
co-authored by Cursor
parent 159c84be75
commit 1466762af4
8 changed files with 137 additions and 30 deletions
+5 -1
View File
@@ -1,5 +1,9 @@
export default defineNitroPlugin(() => {
for (const pending of listPendingJobs()) {
void resolvePendingJob(pending).catch(() => null)
void resolvePendingJob(pending).then((done) => {
if (!done) ensurePendingWatch(pending)
}).catch(() => {
ensurePendingWatch(pending)
})
}
})