Too many requeues during CleanupResources #3801
Labels
bug
Something isn't working
gha-runner-scale-set
Related to the gha-runner-scale-set mode
needs triage
Requires review from the maintainers
Checks
Controller Version
0.9.3
Deployment Method
Other
Checks
To Reproduce
Describe the bug
There's this function to cleanup resources in the ARC controller https://github.com/actions/actions-runner-controller/blob/master/controllers/actions.github.com/ephemeralrunner_controller.go#L137-L144 now this is requeued in the case when the function returns done as false. Now the mess up is that every time this function is called it does this
Delete Pod
Return false and requeue
Next Queue catch up
Delete Jitconfig Secret
Return false and requeue
Next Queue catch up
Return true
Why are we requeing it so many times is what I don't understand, why not delete the pod and the jitconfig secret in the same reconcile.
Describe the expected behavior
The amount of requeues here is slowing down our runner termination process.
Additional Context
Controller Logs
Runner Pod Logs
The text was updated successfully, but these errors were encountered: