Skip to content

Ensure scale set exists - #493

Merged
gabriel-samfira merged 1 commit into
cloudbase:mainfrom
gabriel-samfira:ensure-scale-set
Aug 23, 2025
Merged

Ensure scale set exists#493
gabriel-samfira merged 1 commit into
cloudbase:mainfrom
gabriel-samfira:ensure-scale-set

Conversation

@gabriel-samfira

Copy link
Copy Markdown
Member

Github will remove inactive scale sets after 7 days. This change ensures the scale set exists in github before spinning up the listener.

This change also caches github runner group IDs so we don't have to fetch it from the API on every runner creation request. The cache expires in 1 hour, so we will get at most one request per runner group per hour. Which should be fine.

The fallback to registration token was also removed. Now, if JIT is enabled and we fail to create a config, no runner is created.

Github will remove inactive scale sets after 7 days. This change
ensures the scale set exists in github before spinning up the listener.

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
@gabriel-samfira
gabriel-samfira merged commit 5a26614 into cloudbase:main Aug 23, 2025
4 checks passed
@gabriel-samfira
gabriel-samfira deleted the ensure-scale-set branch August 23, 2025 19:12
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