Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Too many requeues during CleanupResources #3801

Open
4 tasks done
pulkitanz opened this issue Nov 8, 2024 · 1 comment
Open
4 tasks done

Too many requeues during CleanupResources #3801

pulkitanz opened this issue Nov 8, 2024 · 1 comment
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

Comments

@pulkitanz
Copy link

Checks

Controller Version

0.9.3

Deployment Method

Other

Checks

  • This isn't a question or user support case (For Q&A and community support, go to Discussions).
  • I've read the Changelog before submitting this issue and I'm sure it's not due to any recently-introduced backward-incompatible changes

To Reproduce

Very easy to reproduce if you have even one local pod running you can check the logs of creation and deletion.

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

-
@pulkitanz pulkitanz added bug Something isn't working gha-runner-scale-set Related to the gha-runner-scale-set mode needs triage Requires review from the maintainers labels Nov 8, 2024
Copy link
Contributor

github-actions bot commented Nov 8, 2024

Hello! Thank you for filing an issue.

The maintainers will triage your issue shortly.

In the meantime, please take a look at the troubleshooting guide for bug reports.

If this is a feature request, please review our contribution guidelines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

1 participant