You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A lot of random "A task was cancelled" errors #3819
We've encountered intermittent "A task was cancelled" errors during various phases of our GitHub Actions workflows. These errors occur inconsistently—sometimes during the setup-job phase, and other times mid-execution within a job step.
In the logs, we didn't find anything interesting...
And we are looking for a direction to investigate To Reproduce
Steps to reproduce the behavior:
run a lot of matrix jobs in self self-hosted runner
Runner Version and Platform
Version of your runner?
linux 2.323.0
What's not working?
we are running the runner on a self hosted aws eks cluster with ARC
Reacted by Patrick Vinograd, Wataru KASAHARA, Hideki Arima, Jan Wiele, SipgateSteffenPaul, Nadav Baumer, Noamshmueli, Adel Sachkov, Mark Massoud, Yaroslav Patalakha and 38 more
I did some investigation before on the logs of our runners, and found a pattern for jobs that get cancelled while being started.
The runner shuts down immediately because it gets a 'Runner not found' response from some API.
This seems related to following change: #3536
I suspect that this 'runner not found' is a transient issue and a retry fixed it before this change got merged
We see the same pattern in the runner logs. If we put them side-by-side with the gha-scale-set-controller logs, we see:
May 15 06:47:02.249 | gha-runner-scale-set-controller | Checking if runner exists in GitHub service
May 15 06:47:02.249 | gha-runner-scale-set-controller | Runner exists in GitHub service
And then immediately in the runner logs:
An error occurred: Runner not found
The scale-set-controller tries up to 5 times before failing the ephemeral runner, and the pattern is consistent throughout - the controller thinks the runner resource exists on the GHA service side, the runner starts up and thinks it does not. I have not dug through the code to see if they are invoking the exact same API/referring to the same thing.
The runner code is generating the RunnerNotFound exception here invoking a /message endpoint and getting some error payload with "RunnerNotFound" from that GHA broker API. I.e. it's not a connection failure or anything like that, it's getting a response back from the service and parsing it.
The scale-set-controller is invoking a GetRunner method here, seems to be a totally different endpoint _apis/distributedtask/pools/0/agents/<runner_id> that's returning successfully.
Without knowing any internal details of the Github Actions service APIs I don't see what else affected parties outside of Github can do to resolve or even mitigate this.
Reacted by Kaleb Ferguson, arohter, Francisco Martinez, AJ Schmidt, Todd Lyons, David Catteuw and Ats Uiboupin
The core issue is the lack of feedback and the opaque nature of the cancellation. There’s no indication of cause or any hint as to why the actions are being cancelled. Improving or expanding the error context would help clarify what’s happening.
Activity
patrickvinograd commentedon Apr 23, 2025
We are also observing this for roughly the last week.
Seggan commentedon Apr 24, 2025
Can confirm, for example https://github.com/pylonmc/pylon-core/actions/runs/14648537973/job/41108671805
omer2500 commentedon Apr 24, 2025
im not sure its the same issue
Error: The operation was canceled. vs Error: A task was canceled
Seggan commentedon Apr 24, 2025
Ah, maybe not. I'll make a separate issue
mjeszenkavalstro commentedon Apr 28, 2025
Our organization is having the same issue.
adel-s commentedon Apr 29, 2025
Ours also.
Noamshmueli commentedon Apr 29, 2025
Our organization also experience the same issue
YevhS commentedon May 7, 2025
The same for me as well
m0ana commentedon May 7, 2025
Same in our org
Storm-BE commentedon May 13, 2025
Same thing here :(
Storm-BE commentedon May 13, 2025
I did some investigation before on the logs of our runners, and found a pattern for jobs that get cancelled while being started.
The runner shuts down immediately because it gets a 'Runner not found' response from some API.
This seems related to following change: #3536
I suspect that this 'runner not found' is a transient issue and a retry fixed it before this change got merged
patrickvinograd commentedon May 15, 2025
We see the same pattern in the runner logs. If we put them side-by-side with the gha-scale-set-controller logs, we see:
And then immediately in the runner logs:
The scale-set-controller tries up to 5 times before failing the ephemeral runner, and the pattern is consistent throughout - the controller thinks the runner resource exists on the GHA service side, the runner starts up and thinks it does not. I have not dug through the code to see if they are invoking the exact same API/referring to the same thing.
patrickvinograd commentedon May 15, 2025
The runner code is generating the RunnerNotFound exception here invoking a
/messageendpoint and getting some error payload with "RunnerNotFound" from that GHA broker API. I.e. it's not a connection failure or anything like that, it's getting a response back from the service and parsing it.The scale-set-controller is invoking a
GetRunnermethod here, seems to be a totally different endpoint_apis/distributedtask/pools/0/agents/<runner_id>that's returning successfully.Without knowing any internal details of the Github Actions service APIs I don't see what else affected parties outside of Github can do to resolve or even mitigate this.
mihstaub commentedon May 15, 2025
Our org have the same issue....
14 remaining items
moatorres commentedon Dec 20, 2025
The core issue is the lack of feedback and the opaque nature of the cancellation. There’s no indication of cause or any hint as to why the actions are being cancelled. Improving or expanding the error context would help clarify what’s happening.
jeaye commentedon Dec 28, 2025
I'm seeing the same thing regularly for one of my jobs (the one which publishes my releases, alas). Has anyone found a workaround?
moatorres commentedon Dec 29, 2025
In my case the worker was silently failing due to OOM kills. I've managed to tame it by reducing --max-old-space-size to 4096 using NODE_OPTIONS.
olefemmy commentedon Jan 7, 2026
Same here - I have experienced a lot of these today, and I probablty get lucky after re-running the same pipeline after about 3 or 4 times:
Hosted Compute Agent
Version: 20251211.462
Commit: 6cbad8c2bb55d58165063d031ccabf57e2d2db61
Build Date: 2025-12-11T16:28:49Z
Worker ID: {bc46e5ea-c794-4c2b-af75-32cfa97c6b2b}
Image: ubuntu-24.04
Version: 20251215.174.1
Included Software: https://github.com/actions/runner-images/blob/ubuntu24/20251215.174/images/ubuntu/Ubuntu2404-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu24%2F20251215.174
olefemmy commentedon Jan 9, 2026
When I reverted from
ubuntu-latesttoubuntu-22.04, the pipeline seems to be happy.fix(ci): suppress MongooseError in tests and pin ubuntu-22.04
titanism commentedon Jan 26, 2026
https://x.com/fwdemail/status/2015782464438866300
pin ubuntu to 22.04 for the linux pipeline
ci: split push-eas-update into two parallel jobs (MetaMask#30399)
temp+ci: split push-eas-update into two parallel jobs (#30399)
temp+ci: split push-eas-update into two parallel jobs (#30399)
chore(runway): cherry-pick ci: split push-eas-update into two paralle…
chore(runway): cherry-pick ci: split push-eas-update into two paralle…
feat: add runner-environment-401 arc-ephemeral-task-cancelled-broker-…
feat: add 3 new error entries (known-unsolved x1, runner-environment …