Workflow runs stuck in "queued" with zero jobs for hours, and cancel / force-cancel are rejected #214826
Replies: 2 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. ⭐ |
|
Short answer: do not re-enable it yet. Keep the workflow disabled until those four runs are confirmed cancelled, because a run stuck in queued can still start later and deploy an older commit, and your deploy workflow would do exactly that. Only GitHub Support can clear them from here. Your cancel errors give it away. The API says queued, cancel says completed, and force-cancel says not queued yet. That is a backend state that is out of sync, and no API call on your side can fix it. Open a Support ticket with the four run IDs and ask them to force-cancel the runs and confirm nothing is left queued. Once they confirm that, re-enable the workflow and watch the first run before you trust it again. |
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Bug
💬 Feature/Topic Area
Workflow Deployment
Discussion Details
Problem
4
workflow_dispatchruns of one workflow in a private repository are stuck inqueued. No jobs were ever created, so they never start, and the ones I tried to cancel refused. As of 2026-12-05 13:39 UTC all 4 are still queued, the oldest for about 15 hours.Stuck runs (repo: matheusfavieira/rallyhub)
deploydeploydeploydeploy-productionFor all four, the API shows:
status: queued,conclusion: nullupdated_atequal tocreated_at/jobsreturnstotal_count: 0/pending_deploymentsreturns[]Cancel errors
gh run cancel 47439896037andgh run cancel 47460944731:Cannot cancel a workflow run that is completed(but the API reports them asqueued)POST /repos/{owner}/{repo}/actions/runs/47439896037/force-cancel:409: Cannot cancel a workflow run that has not been queued yet.Workflow configuration (relevant parts)
At the latest commit:
Timeline and observations
mainwhile the workflow was enabled (ae7528e) created no run at all, so I dispatched #188 by hand.What I've tried
deploytodeploy-production: the new run got stuck the same waytimeout-minutes: 15to both jobs: no effect expected on these runs, since no job existsEnvironment
ubuntu-latest)productionenvironment has only a deployment branch policy (no required reviewers or wait timer)Questions
All reactions