Skip to content

Cancel broker-flow job by runner request id - #4835

Open
AdzerKI wants to merge 1 commit into
actions:mainfrom
AdzerKI:fix-cancel-by-runner-request-id
Open

AdzerKI wants to merge 1 commit into
actions:mainfrom
AdzerKI:fix-cancel-by-runner-request-id

Conversation

@AdzerKI

@AdzerKI AdzerKI commented Nov 4, 2026

Copy link
Copy Markdown

Fixes #4783

In the broker flow the runner acknowledges and fetches a job by RunnerRequestId, but JobDispatcher keeps running workers keyed by job id only. A JobCancelMessage carrying the request id misses _jobInfos and is dropped, so the job keeps running until it finishes on its own.

This keeps the runner request id on WorkerDispatcher and falls back to it when the job id lookup misses. A cancel that matches neither is now logged at Info.

We hit this on ephemeral self-hosted runners: cancelling a run left the job running on the host until renewjob failed after force-cancel.

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.

JobCancelMessage carrying the request id is silently dropped; the miss is logged only at Verbose

1 participant