Fix live runner lifecycle handling #4

Merged
simon merged 1 commit from fix/live-runner-lifecycle into main 2026-05-22 21:43:28 +00:00
Owner

Fixes issues found during live autoscaler deployment and the 24-job load test:

  • Decode Forgejo org runner jobs that expose labels as runs_on.
  • Treat Forgejo idle runner status as online/eligible.
  • Require usable Forgejo runners to be tracked locally in idle state.
  • Check the guest runner service before trusting an idle/assigned/running runner record.
  • Allow stale and exited idle runners to drain and be destroyed.
  • Document/use forgejo-runner one-job --wait for warm pool runners.

Validated with go test ./... and by deploying the patched binary to claude@192.168.8.235.

Fixes issues found during live autoscaler deployment and the 24-job load test: - Decode Forgejo org runner jobs that expose labels as `runs_on`. - Treat Forgejo `idle` runner status as online/eligible. - Require usable Forgejo runners to be tracked locally in `idle` state. - Check the guest runner service before trusting an idle/assigned/running runner record. - Allow stale and exited idle runners to drain and be destroyed. - Document/use `forgejo-runner one-job --wait` for warm pool runners. Validated with `go test ./...` and by deploying the patched binary to `claude@192.168.8.235`.
Fix live runner lifecycle handling
All checks were successful
Build and release / test (pull_request) Successful in 48s
Build and release / build (pull_request) Successful in 1m44s
a1b7870c88
simon merged commit 2d6c243be7 into main 2026-05-22 21:43:28 +00:00
simon deleted branch fix/live-runner-lifecycle 2026-05-22 21:43:28 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
carrtech/forgejo-runner-autoscaler!4
No description provided.