Stuck GitHub Actions Workflows: Impact on Repo Activity and How to Regain Control
GitHub Actions is a cornerstone of modern CI/CD, enabling teams to automate their development workflows from testing to deployment. However, even the most robust systems can encounter unexpected glitches. A recent discussion on the GitHub Community forum highlighted a particularly frustrating bug where workflow runs became irreversibly stuck in a "queued" state, severely impacting repository activity and developer productivity.
The Problem: Workflows Stuck in Limbo
A community member reported an issue in a private repository where three distinct GitHub Actions workflow runs became perpetually "queued" with zero jobs initiated. This critical state began on 2026-11-11 and persisted, despite the workflows using a concurrency group configured with cancel-in-progress: false. The core of the problem was that while these phantom runs were stuck, any new workflow runs attempting to use the same concurrency group were blocked from starting. This included a manual workflow_dispatch run, which ultimately failed with a startup_failure, indicating a complete halt to ongoing CI/CD processes for that group.
Why Standard Solutions Failed
The user diligently attempted various standard troubleshooting methods, only to be met with perplexing errors that underscored the unique nature of this bug. The runs were in a state that neither GitHub's CLI nor its API could properly interpret or resolve:
- Cancelling the run: Using
gh run cancelresulted in the message "Cannot cancel a workflow run that is completed," despite the run clearly being stuck in "queued."gh run cancel - Force-cancelling via API: A direct
POST /actions/runs/{id}/force-cancelAPI call returned a 409 conflict, stating "Cannot cancel a workflow run that has not been queued yet." This contradictory error further highlighted the run's ambiguous state.POST /actions/runs/{id}/force-cancel - Rerunning the workflow: Attempting
gh run rerunwas met with "This workflow is already running," which was technically true but unhelpful given its stuck status.gh run rerun - Deleting the run: A
gh run deletecommand failed with an HTTP 403 error, preventing any administrative cleanup.gh run delete
Crucially, the workflow had no if: always() conditions, and no jobs were ever created for these stuck runs, ruling out common misconfigurations. GitHub's status page showed no incidents at the time, confirming this was an isolated, repository-specific issue rather than a platform-wide outage.
The Workaround: Renaming Concurrency Groups
Faced with a completely blocked CI/CD pipeline, the user discovered a pragmatic workaround: renaming the concurrency group. By simply changing the name of the group, new workflow runs were able to start normally again, bypassing the stuck runs. While effective for restoring immediate repo activity, this solution left the original three phantom runs permanently stuck in their old concurrency group, requiring potential manual intervention from GitHub staff for cleanup.
Impact on Developer Performance and Repo Activity
This incident underscores how critical stable and predictable CI/CD pipelines are for maintaining high developer performance. When repo activity is halted by unresolvable workflow states, developers lose valuable time waiting for builds, tests, and deployments, directly impacting their efficiency and release cycles. Monitoring tools and performance dashboard software can help identify such bottlenecks, but in cases like this, where standard tools fail to resolve the issue, direct intervention or creative workarounds become necessary.
The GitHub team acknowledged the feedback, indicating that such insights are invaluable for product improvements. While a direct solution for the stuck runs wasn't provided in the discussion, the community's proactive sharing of issues and workarounds helps everyone navigate the complexities of modern development platforms.
If you encounter similar issues, consider the concurrency group renaming workaround to restore your immediate repo activity and always report such critical bugs to the platform provider for a long-term resolution.
