Workflow runs stuck in "queued" with zero jobs, cannot be cancelled (409 via API, 422 via web UI) #211260
Replies: 5 comments
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
|
I think I may have found the cause of this issue. It could be related to outdated action versions that are no longer listed in the GitHub Actions Marketplace. For example, check if your workflows use My suspicion is that referencing an older action version might cause workflows to get stuck in the I recommend checking all the actions used in your workflows and updating them to their latest stable versions to see if that resolves the issue. |
|
Thanks for the suggestion. I checked this against my runs, and I don’t think outdated actions are the cause here. The same workflow files, with the same actions/checkout@v4 and other v4 actions, ran fine before and after the stuck runs. Run #72 completed successfully, as did all of my CI runs the same day. The two stuck runs (#69 and #70) were started from the same workflow at the same time as the successful ones. What the stuck runs have in common is that they never got a single job (the jobs list is empty) and could not be cancelled: the cancel call returns 409 Cannot cancel a workflow run that has not been queued yet. That looks like a problem on GitHub’s side, not like a version issue in the workflow. I am still updating the actions to the latest major versions, since the logs warn that the v4 ones run on Node 20 and are being forced to Node 24. But I expect that to fix the warning, not the stuck runs. I’ll post an update if the stuck runs behave differently afterwards. |
|
Update: I updated the actions to their latest major versions (checkout, setup-java, setup-node, upload-artifact, setup-gradle → v5; upload-pages-artifact → v4). Everything runs fine with them, and the Node 20 deprecation warning now only mentions two actions I haven’t bumped. As expected, this did not change anything about the stuck runs. #69 and #70 are still sitting in “queued” with an empty jobs list, and I still can’t cancel them (409 Cannot cancel a workflow run that has not been queued yet). New runs of the same workflow start and finish normally, both before and after the update. So I’m fairly sure the old action versions were not the cause. Has anyone seen runs like this clear up on their own, or found a way to remove them? |
|
I ran into the same issue. After updating the GitHub Actions to their latest versions, everything started working fine for new runs. However, the old runs are still stuck in the queue, and I haven't found a way to cancel or remove them. |
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Bug
💬 Feature/Topic Area
Workflow Configuration
Discussion Details
Repository: TRGamer-tech/Rezeptli (public)
Workflow: .github/workflows/index-bauen.yml ("Rezeptindex", Pages deploy)
What happens
Two manually dispatched (workflow_dispatch) runs on main (commit 4ee1e94d81aaa54baad5e87fe2c4c924fbba3960) stay in status "queued" and never create a single job:
The jobs endpoint returns total_count 0 for both, still the case at 19:44 UTC (40+ minutes).
Cancel fails
What works
Workflow details that might matter
Request
Please clear or force-cancel runs #69 and #70 (suite 109024272205 and the suite of #70) so the concurrency group is released, and check why dispatches of this workflow are not being scheduled onto a runner.
All reactions