How to Handle the "Canceling since a higher priority run exists" Message in GitHub Actions
That message means a newer run entered the same concurrency group, so GitHub canceled this older one by design.
The log line Canceling since a higher priority waiting request ... exists is expected behavior with cancel-in-progress: true: the newest queued run wins and this one is dropped. Only worry if the group is too broad.
What it means
- A run with the same concurrency group started after this one.
- With
cancel-in-progress: true, the newer run supersedes and cancels the older. - The canceled run ends with conclusion
cancelled, notfailure.
When it is a bug
.github/workflows/ci.yml
# Too broad: every branch shares one group and cancels each other
concurrency:
group: ci # BAD: no ref, so all branches collide
cancel-in-progress: true
# Fixed: isolate per ref
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: trueGotchas
- If unrelated branches keep canceling each other, add
github.reforgithub.head_refto the group. - To keep the old run instead of the new one, set
cancel-in-progress: falseso runs queue.
Related guides
How to Debug Why a Run Was Canceled in GitHub ActionsDiagnose why a GitHub Actions run was canceled by checking the cancellation reason in the logs: concurrency s…
How to Cancel In-Progress Runs on a New Push in GitHub ActionsCancel an in-progress GitHub Actions run when a newer commit is pushed to the same ref by pairing a concurren…