Skip to content

fix(garm): confirm dispatch demand and retain terminal completion - #428

Merged
rldyourmnd merged 1 commit into
mainfrom
fix/confirmed-scaleset-demand-20260907
Sep 7, 2026
Merged

fix(garm): confirm dispatch demand and retain terminal completion#428
rldyourmnd merged 1 commit into
mainfrom
fix/confirmed-scaleset-demand-20260907

Conversation

@rldyourmnd

Copy link
Copy Markdown
Contributor

Retained queue assignments could create idle JIT runners after GitHub no longer assigned work to that scale set. Confirm current scale-set demand before each registration, bounded by local admission and MaxRunners. A stale persisted zero now triggers an authoritative read; a fresh zero or unknown result retains existing jobs and workers without allocating. Reads have a five-second deadline and thirty-second refusal/error backoff.

A fast direct-JIT job can also start and complete in one message batch. Completion now wins, preserves its terminal receipt, and cannot leave a running allocation behind. Older terminal records are excluded from capacity. No journal schema change, cancellation, runner deletion, admission-limit change or runtime deployment is included.

Validation: the new fast-completion regression failed on the previous implementation and passes with the fix; the full scale-set suite passes. make verify passes. The complete patched upstream suite passed with -race -tags testing in the pinned Go 1.26.6 container, with no network during tests/build. Two builds with independent caches produced the same .92 executable SHA-256: c112777344debf7e9c0b82524b6de381872ff6576e700cc4c4469b136770b560; maximum required glibc is 2.34. Generated build manifest/script and portable deployment examples agree. Runtime adoption and exact queued-job recovery remain separate private acceptance.

Closes #427.

Signed-off-by: rldyourmnd <danil@nddev.it.com>
@rldyourmnd
rldyourmnd merged commit 02bdb90 into main Sep 7, 2026
10 checks passed
@rldyourmnd
rldyourmnd deleted the fix/confirmed-scaleset-demand-20260907 branch September 7, 2026 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Confirm current scale-set demand and make batched completion terminal

1 participant