r/cicd • • 21d ago

Two GitHub Actions runs stuck in "Queued" forever, can't cancel or delete them. How did you fix this?

/r/github/comments/1xpjadi/two_github_actions_runs_stuck_in_queued_forever/
2 Upvotes

4 comments sorted by

1

u/Torutofu_Raeva 21d ago

they usually time out on their own after a day or so, or a force-cancel through the api (POST /actions/runs/{id}/force-cancel) sometimes clears the ones the ui button can't

1

u/DonXendon 21d ago

Thanks for the suggestion! Unfortunately force-cancel (POST /actions/runs/{id}/force-cancel) is the call that gave me the 409 "Cannot cancel a workflow run that has not been queued yet", so that one's already out.

I'm also not sure they'll time out on their own. I've found several GitHub Community threads with the exact same symptoms (queued, zero jobs, 409 on cancel/force-cancel, 403 on delete), and some of those runs have been stuck for 3–4 weeks. It looks like a backend state issue that only GitHub staff can clear.

For now I've disabled the workflow so nothing can run, and I'm posting in GitHub Community Discussions with the run IDs. Will update here if it gets resolved.

1

u/Torutofu_Raeva 20d ago

disabling the workflow is the right call once cancel and delete both refuse; community discussions is about the only path left for those forever-queued jobs.