feat(scheduler): capability-aware tryClaimJob + registerWorker #31
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/worker-capability-scheduler"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Phase A.3 of 5 (final mcp-side change). Bumps scrum4me-shared submodule to PR #6 merge (96612d4) which adds the WorkerCapability enum + ClaudeWorker.capability field. Adds buildHigherTierIdleFragment helper (Prisma.Sql NOT EXISTS clause) and wires it into tryClaimJob: a worker only claims if no other alive idle worker exists with strictly higher capability for the same user+runtime. registerWorker now accepts the capability so scrum4me-docker can pass WORKER_CAPABILITY in Phase B.
Backwards-compatible: capability field is nullable, the NOT EXISTS uses NULL semantics so unpopulated workers behave as today.
DEPENDENCY for merge: Scrum4Me PR #62 (Phase A.2 — the Prisma migration) must be deployed to Neon prod before this PR can safely be released to workers in production. Until then, queries reference a column that does not exist.
Spec/plan: scrum4me-docker docs/superpowers/specs/2026-05-31-worker-capability-scheduling-design.md and docs/superpowers/plans/2026-05-31-worker-capability-scheduling.md (Phase A.3).