Fix queue dispatch deadlocks and stale completion recovery
This commit is contained in:
@@ -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>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user