Skip to content

Add listener graceful termination period and background context after the message is received#3187

Merged
nikola-jokic merged 1 commit into
masterfrom
nikola-jokic/graceful-termination-listener
Jan 25, 2024
Merged

Add listener graceful termination period and background context after the message is received#3187
nikola-jokic merged 1 commit into
masterfrom
nikola-jokic/graceful-termination-listener

Conversation

@nikola-jokic

Copy link
Copy Markdown
Collaborator

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 requested review from a team, mumoshu and toast-gear as code owners December 25, 2023 13:25
@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 requested a review from Link- January 8, 2024 10:06
@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 force-pushed the nikola-jokic/graceful-termination-listener branch from 2935777 to a65c7bf Compare January 25, 2024 14:28
@nikola-jokic nikola-jokic merged commit f7b6ad9 into master Jan 25, 2024
@nikola-jokic nikola-jokic deleted the nikola-jokic/graceful-termination-listener branch January 25, 2024 14:45
unpollito pushed a commit to DistruApp/actions-runner-controller that referenced this pull request Jan 21, 2026
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.

2 participants