Reattach Comfy watchers after refresh so pending jobs finish and save.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -35,17 +35,13 @@ export default defineEventHandler(async (event) => {
|
||||
...resolved
|
||||
}
|
||||
} else {
|
||||
const job = ensurePendingWatch(pending)
|
||||
video = {
|
||||
jobId: pending.jobId,
|
||||
kind: 'video',
|
||||
type: 'snapshot',
|
||||
status: 'running',
|
||||
message: 'Reconnecting to ComfyUI...',
|
||||
progress: Math.max(8, Math.min(90, Math.round((Date.now() - pending.startedAt) / 1000))),
|
||||
promptId: pending.promptId,
|
||||
elapsedMs: Date.now() - pending.startedAt,
|
||||
hideThumbnail: pending.hideThumbnail === true,
|
||||
folderLocked: pending.folderLocked === true
|
||||
folderLocked: pending.folderLocked === true,
|
||||
...jobSnapshot(job)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user