fix: protect active runner VMs from destroy #10

Merged
simon merged 1 commit from fix/protect-active-runner-vms into main 2026-05-23 09:06:53 +00:00
Owner

Adds destroy-time guards so the controller refuses to drain, destroy, or orphan-clean a runner while Forgejo still reports an active job matching the runner ID or assigned job handle. Also treats active handles as assigned capacity when Forgejo incorrectly reports the runner as idle, and covers service-check failures with active-job tests.\n\nTested with: go test ./...

Adds destroy-time guards so the controller refuses to drain, destroy, or orphan-clean a runner while Forgejo still reports an active job matching the runner ID or assigned job handle. Also treats active handles as assigned capacity when Forgejo incorrectly reports the runner as idle, and covers service-check failures with active-job tests.\n\nTested with: go test ./...
fix: protect active runner vms from destroy
All checks were successful
Build and release / build (pull_request) Successful in 2m37s
749bd0bbfa
simon merged commit 1f61b46af1 into main 2026-05-23 09:06:53 +00:00
simon deleted branch fix/protect-active-runner-vms 2026-05-23 09:06:53 +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!10
No description provided.