GitHub Actions workflow stuck in Queued for over an hour – Failed to cancel workflow #212786
Replies: 7 comments 1 reply
|
💬 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. ⭐ |
|
Hi, A run stuck in Queued that can't be cancelled is usually a stuck run record on GitHub's side, often after an incident. You can try these steps without touching your PR or code. 1. Force-cancel the run The normal cancel can fail on a stuck run, but the force-cancel endpoint is designed for this case: gh api -X POST repos/mark257911-create/Trading-AI-Agent-V2/actions/runs/43097776258/force-cancelOr with curl: curl -X POST \
-H "Authorization: Bearer $GITHUB_TOKEN" \
-H "Accept: application/vnd.github+json" \
https://api.github.com/repos/mark257911-create/Trading-AI-Agent-V2/actions/runs/43097776258/force-cancelYour token needs the 2. Re-run without changing any code Once it's cancelled: gh run rerun 43097776258Or use "Re-run all jobs" on the run page. If you'd rather not re-run the old record, you can also push an empty commit, but that does modify the PR branch, so try re-run first. 3. Check common causes of a run stuck in Queued with no jobs
4. If it still can't be cancelled or re-run Contact GitHub Support (https://support.github.com/contact) with the repository name, the run ID (43097776258), and the time it was queued. They can clear a stuck run on the backend. Such runs generally don't count against your minutes. |
|
I'm experiencing similar issue... I've filed two tickets; they're both open. I'm in my 4th day straight & even worse, this isn't just any workgroup -- I'm lucky to be in it as they've allowed me to join even though I've only submitted my job application. I'm unlucky that I'm running into the same kinds of issues I often experience with GitHub (sign-in/pw) & shockingly they've only been surpassed finally after years as the worst software experience of my life by the other program I'm using for this - SLACK |
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Bug
💬 Feature/Topic Area
Actions Runner
Discussion Details
Problem
My GitHub Actions workflow has been stuck in the Queued state for over an hour. When I try to cancel it, GitHub displays the error: "Failed to cancel workflow."
Environment
mark257911-create/Trading-AI-Agent-V2(Private)43097776258ubuntu-latestWhat happened?
Troubleshooting already performed
Expected behavior
The workflow should start and execute its tests, or it should be possible to cancel the queued workflow.
Question
Could this be a stuck GitHub Actions workflow run or a scheduling issue following the recent GitHub Actions service disruption?
How can I safely cancel or restart this run without modifying my pull request or source code?
Thank you for your help.
All reactions