Fix queue dispatch deadlocks and stale completion recovery

This commit is contained in:
Towsty
2026-09-06 16:08:50 -05:00
parent 069108ae44
commit 911ddeab55
4 changed files with 189 additions and 10 deletions
+3 -1
View File
@@ -211,7 +211,9 @@ export async function freeComfyVram() {
}
export async function fetchHistory(promptId: string) {
const res = await comfyFetch(`/history/${encodeURIComponent(promptId)}`)
const res = await comfyFetch(`/history/${encodeURIComponent(promptId)}`, {
signal: AbortSignal.timeout(12000)
})
if (!res.ok) return null
return (await res.json()) as Record<string, unknown>
}