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

Handle ForceTokenRefresh message #3133

Merged
merged 4 commits into from
Feb 7, 2024

Conversation

luketomlinson
Copy link
Contributor

@luketomlinson luketomlinson commented Feb 6, 2024

There are situations where we need the runner to refresh its Listener token. The main scenarios are:

  1. When the labels change
  2. When the runner group changes

This is because we want the claims in the token to reflect the current state as soon as possible.

@luketomlinson luketomlinson marked this pull request as ready for review February 7, 2024 15:58
@luketomlinson luketomlinson requested a review from a team as a code owner February 7, 2024 15:58
Copy link
Member

@rentziass rentziass left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@luketomlinson luketomlinson merged commit 651ea42 into main Feb 7, 2024
10 checks passed
@luketomlinson luketomlinson deleted the luketomlinson/handle-token-refresh-message branch February 7, 2024 16:24
AdamOlech pushed a commit to antmicro/runner that referenced this pull request Aug 14, 2024
* Handle ForceTokenRefresh message

* move to constants

* format
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.

2 participants