Skip to content

armgit / fuobe

Public Imported from GitHub
0

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.

Tests: the worker program's recovery checks start with their worker connected

Adarshef5d00ed5ec7
diff --git a/tests/recovery-worker.test.ts b/tests/recovery-worker.test.ts
index d73306c3..e53b1926 100644
--- a/tests/recovery-worker.test.ts
+++ b/tests/recovery-worker.test.ts
@@ -155,6 +155,8 @@ describe("the worker program's recovery (accounts' runs, end to end)", () => {
const lanes = studio.lanes();
studio.pool.patchWorker(w.id, { paused: false, hours: { always: true }, allow: Object.fromEntries(lanes.map((l) => [l, { delayMs: 0 }])), claimAfterMs: 0 });
studio.db().prepare("UPDATE relay_workers SET lanes_json = ?, facts_json = ? WHERE id = ?").run(JSON.stringify({ lanes, workflows: studio.workflows() }), JSON.stringify({ vramBytes: 32 * 2 ** 30 }), w.id);
+ // Connected, as a worker that beat a moment ago (a run is refused while every worker that could run it is away).
+ studio.db().prepare("UPDATE relay_workers SET seen_at = ?, protocol = ?, paused_local = 0 WHERE id = ?").run(Date.now(), studio.pool.MIN_PROTOCOL, w.id);
return w;
}