Skip to content

Handle ForceTokenRefresh message - #3133

Merged
luketomlinson merged 4 commits into
mainfrom
luketomlinson/handle-token-refresh-message
Feb 7, 2024
Merged

luketomlinson merged 4 commits into
mainfrom
luketomlinson/handle-token-refresh-message

Conversation

@luketomlinson

@luketomlinson luketomlinson commented Feb 6, 2024 •

Copy link
Copy Markdown
Contributor

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

@rentziass rentziass left a comment

Copy link
Copy Markdown
Member

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
@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