Model call queue view and held claims follow Task Runners becoming ready or not

This commit is contained in:
aiongg committed 2026-11-20 04:31:39 +00:00
1 parent 1b5b427508
commit 92d51578d1
1 file changed
+4 -1
+4 -1
View File
@@ -130,8 +130,11 @@ export const TOPIC_TABLES: Record<string, Source[]> = {
],
// 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" },
],