GitHub Actions Stuck: A Developer's Report on Queued Runs and Cancellation Failures
The Unseen Bottleneck: When GitHub Actions Get Stuck
GitHub Actions are the backbone of many modern CI/CD pipelines, automating everything from testing to deployment. They are critical for maintaining high developer productivity. However, what happens when these automated workflows grind to a halt unexpectedly? A recent developer report from the GitHub Community highlights a particularly frustrating issue: GitHub Actions runs getting stuck in a 'queued' state without ever initiating any jobs, and then refusing to be cancelled.
A Workflow Frozen in Time
The problem, brought to light by user Heclalava, involved a manually dispatched workflow on their Heclalava/Fss-xray repository. The workflow, intended to build and publish an Xray ARM64 release, entered a queued status. Despite this, the workflow run failed to create any jobs, effectively freezing its progress. API queries confirmed the inconsistent state:
- Workflow status:
queued - Conclusion:
null - Jobs: zero
- Check suite status:
queued - Check runs: zero
The most perplexing part of this issue was the inability to terminate the stuck run. Both normal and force cancellation attempts failed, returning an HTTP 409 Conflict error with the message: Cannot cancel a workflow run that has not been queued yet. This message directly contradicts the reported queued status, indicating a significant internal inconsistency within GitHub's Actions control plane.
Heclalava's setup used GitHub-hosted ubuntu-24.04 runners, and crucially, no other workflow runs were in progress at the time, nor was GitHub Actions experiencing any reported outages. The workflow also utilized a concurrency group, xray-arm64-release, which could potentially be a factor if a lock was acquired but not released due to the stuck state.
Not an Isolated Incident
The discussion quickly garnered a reply from another user, Fohlen, who reported hitting the exact same issue on a private repository. This swift confirmation suggests that Heclalava's experience is not an isolated bug but rather indicative of a broader, potentially infrastructure-related problem affecting GitHub Actions scheduling or state management. Such widespread issues are precisely why community-driven developer reports are invaluable for identifying and escalating critical platform bugs.
Impact on Developer Productivity and Metrics
A stuck workflow run that cannot be cancelled poses significant challenges. It can block subsequent deployments, consume conceptual resources, and introduce uncertainty into CI/CD pipelines. For development teams, this directly impacts developer productivity, as engineers are left waiting or trying to manually intervene in a system that isn't responding as expected. Furthermore, such unpredictable stoppages can skew developer metrics related to build times and deployment frequency, making it harder to accurately assess team performance and velocity.
While the initial response from the github-actions bot acknowledged the feedback, it offered no immediate solution or workaround. This underscores the importance of community engagement in pushing for investigation and resolution of critical bugs that affect the core developer experience.
Seeking Resolution and Clarity
Heclalava's request for GitHub to investigate the inconsistent state and safely clear the stuck run, including any associated concurrency lock, highlights the need for platform stability. Addressing these kinds of infrastructure-level bugs often becomes a priority, potentially influencing a sprint review meeting agenda as teams work around or await fixes for critical CI/CD pipelines.
This incident serves as a reminder that even robust platforms like GitHub Actions can encounter complex, hard-to-diagnose issues. The community's role in providing detailed developer reports and confirming widespread impact is essential for driving product improvements and ensuring the reliability of critical development tools. Developers encountering similar issues are encouraged to contribute to the discussion to help bring more visibility to this bug.
