The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.
TypeScript ai-videocomfyuicreative-toolsgenerative-aiideogramimage-generationimage-to-3dimage-to-videoltx-videominimax-h3nextjsopen-sourceopen-weightsqwen-imagetext-to-imagevideo-generationwan
Local runner: a job's state check gives up in time too
Adarsh4a0e3c8e9164
diff --git a/src/lib/computer-runner.ts b/src/lib/computer-runner.tsindex 2ffe01fc..9ab67de2 100644--- a/src/lib/computer-runner.ts+++ b/src/lib/computer-runner.ts@@ -292,7 +292,7 @@ export class ComputerRunner {if (this.jobsApi === undefined) this.jobsApi = await this.read("/api/jobs").then(() => true, () => false);const history = async () => (await this.read<Record<string, HistoryEntryLike>>(`/history/${promptId}`))[promptId];if (this.jobsApi) {- const res = await this.deps.local(`${this.base}${readPath(`/api/jobs/${promptId}`)}`, { credentials: "omit", cache: "no-store" });+ const res = await fetchWithin(`${this.base}${readPath(`/api/jobs/${promptId}`)}`, LOOK_MS, { credentials: "omit", cache: "no-store" }, this.deps.local);if (res.status === 404) return prefix ? this.whereByQueue(promptId) : { s: "absent" };if (!res.ok) throw Object.assign(new Error(`ComfyUI answered HTTP ${res.status}`), { status: res.status });const j = (await res.json()) as { status?: string };