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

feat: add lambda function to cleanup org runners #4476

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

id
Copy link

@id id commented Mar 13, 2025

Add a lambda function to cleanup offline runners in a GitHub organization. Normally runners will be cleaned up automatically, but when using ephemeral runners and spot instances, the call to Github API to remove the runner may not happen, and the runner will stay in the list in offline state.
This lambda function will be triggered by a CloudWatch event and will remove any organization runners that are offline, and their labels match the config.

@id id requested review from a team as code owners March 13, 2025 09:09
@id id force-pushed the add-cleanup-org-runners-lambda branch 3 times, most recently from ee04b8c to c0137ea Compare March 20, 2025 16:36
id and others added 2 commits March 20, 2025 17:36
Add a lambda function to cleanup offline runners in a GitHub
organization. Normally runners will be cleaned up automatically, but
when using ephemeral runners and spot instances, the call to Github
API to remove the runner may not happen, and the runner will stay in
the list in offline state.
This lambda function will be triggered by a CloudWatch event and
will remove any organization runners that are offline, and their
labels match the config.
@id id force-pushed the add-cleanup-org-runners-lambda branch from c0137ea to 27a45ce Compare March 20, 2025 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant