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

Add exponential backoff when generating runner reg tokens #3724

Merged
merged 1 commit into from
Sep 4, 2024

Conversation

Link-
Copy link
Member

@Link- Link- commented Aug 27, 2024

Improve the retry mechanism and add exponential backoff with jitter when refreshing the session token.

@Link- Link- requested review from mumoshu, toast-gear, rentziass and a team as code owners August 27, 2024 20:34
@Link- Link- self-assigned this Aug 27, 2024
@Link- Link- added enhancement New feature or request gha-runner-scale-set Related to the gha-runner-scale-set mode labels Aug 27, 2024
@Link- Link- merged commit 90b68fe into master Sep 4, 2024
16 checks passed
@Link- Link- deleted the Link-/modify-backoff branch September 4, 2024 10:23
Comment on lines +1143 to 1144
if retry > 5 {
return nil, fmt.Errorf("unable to register runner after 3 retries: %w", &GitHubAPIError{

This comment was marked as outdated.

@Link- Link- mentioned this pull request Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request gha-runner-scale-set Related to the gha-runner-scale-set mode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants