Skip to content

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
Copy link
Contributor

This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the Stale label Jun 19, 2025
@github-actions github-actions bot closed this Jul 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant