From 92d51578d133a4549c6ae00a64dbcb1fdacb54f2 Mon Sep 17 00:00:00 2001 From: aiongg <67543387+aiongg@users.noreply.github.com> Date: Fri, 20 Nov 2026 04:31:39 +0000 Subject: [PATCH] Model call queue view and held claims follow Task Runners becoming ready or not --- src/live.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/live.ts b/src/live.ts index 42475424..0e48a300 100644 --- a/src/live.ts +++ b/src/live.ts @@ -130,8 +130,11 @@ export const TOPIC_TABLES: Record = { ], // The user-local helpers' readiness and their leases starting and ending, for the Connect page; not planner input. "remote-helpers": [{ table: "remote_helpers" }, { table: "remote_calls", ops: ["UPDATE"], when: "old.state IS NOT new.state AND (new.state = 'leased' OR old.state = 'leased')" }], - // Model calls entering or leaving the queue and picks changing: held claims and the queue view; not planner input. + // Model calls entering or leaving the queue, picks changing and Task Runners becoming ready or not: held claims and the + // queue view; not planner input. A runner's status report rewrites reported_at, which is not a change here. "remote-queue": [ + { table: "remote_helpers", ops: ["INSERT", "DELETE"] }, + { table: "remote_helpers", ops: ["UPDATE"], when: "old.readiness IS NOT new.readiness OR old.models IS NOT new.models OR old.slots IS NOT new.slots" }, { table: "remote_calls", ops: ["INSERT"] }, { table: "remote_calls", ops: ["UPDATE"], when: "(old.state IS NOT new.state AND (new.state = 'queued' OR old.state = 'queued')) OR old.picked_by IS NOT new.picked_by OR old.pick_until IS NOT new.pick_until" }, ],