Reattach Comfy watchers after refresh so pending jobs finish and save.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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)
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user