fix: protect active runner VMs from destroy #10
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/protect-active-runner-vms"
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?
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 ./...