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 listener graceful termination period and background context after the message is received #3187

Merged
merged 1 commit into from
Jan 25, 2024

Conversation

nikola-jokic
Copy link
Member

The listener can be interrupted at any point of upgrade. If interrupted at a time when the listener receives a message, acquires jobs but fails to patch, that may cause some jobs to be left in a scheduled state.

This PR intends to replace context after the message is received, and to allow some period for the listener to actually patch the ephemeral runner set. Only after patching, the listener should return and therefore exit.

@nikola-jokic nikola-jokic added the gha-runner-scale-set Related to the gha-runner-scale-set mode label Dec 28, 2023
@nikola-jokic nikola-jokic added the priority-0 Lower numbers eq. higher priority label Jan 8, 2024
Link-
Link- previously approved these changes Jan 25, 2024
@nikola-jokic nikola-jokic merged commit f7b6ad9 into master Jan 25, 2024
15 checks passed
@nikola-jokic nikola-jokic deleted the nikola-jokic/graceful-termination-listener branch January 25, 2024 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gha-runner-scale-set Related to the gha-runner-scale-set mode priority-0 Lower numbers eq. higher priority
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants