Skip to content

Change the cancel context to be per runner#59

Merged
ispasov merged 1 commit intomainfrom
is/cancel-per-runner
Feb 19, 2026
Merged

Change the cancel context to be per runner#59
ispasov merged 1 commit intomainfrom
is/cancel-per-runner

Conversation

@ispasov
Copy link
Collaborator

@ispasov ispasov commented Feb 19, 2026

Previously jobs were tied to runners, so when a job completes, we cancelled the runner context. Job and runner were assigned during the provisioning process.

However, it is possible that a job is taken from another runner. In this case when the job completes the integration cancels the context for the wrong runner. To make sure this does not happen, use the runner name to cancel the context and not the job id.

@ispasov ispasov requested a review from a team as a code owner February 19, 2026 11:26
@ispasov ispasov force-pushed the is/cancel-per-runner branch 2 times, most recently from 1b07575 to 4a7eeb4 Compare February 19, 2026 12:13
Base automatically changed from is/fix-nre to main February 19, 2026 17:58
Previously jobs were tied to runners, so when a job completes, we cancelled the runner context.
Job and runner were assigned during the provisioning process.

However, it is possible that a job is taken from another runner.
In this case when the job completes the integration cancels the context for the wrong runner.
To make sure this does not happen, use the runner name to cancel the context and not the job id.
@ispasov ispasov force-pushed the is/cancel-per-runner branch from 4a7eeb4 to d5c4c93 Compare February 19, 2026 17:59
@ispasov ispasov merged commit 78b43b2 into main Feb 19, 2026
2 checks passed
@ispasov ispasov deleted the is/cancel-per-runner branch February 19, 2026 19:08
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