Azure Pipelines: "all potential agents are running other requests"
The message reads The agent request is not running because all potential agents are running other requests. Current position in queue: 1. Nothing has failed: the job waits in the queue, and the number is its place in the line. It waits for a free parallel job in the organization, or for a free agent that can run it.
See what holds the queue
- Open Parallel jobs in the settings, at
https://dev.azure.com/{org}/_settings/buildqueue?_a=concurrentJobs, or from manage parallel jobs in the log. - Choose the pool type, Microsoft-hosted or self-hosted, and View in-progress jobs. It says Currently running X/X jobs. When both numbers are the same, your job waits until a running one completes.
- For a self-hosted pool, open
https://dev.azure.com/{org}/_settings/agentpools, the pool, and Agents: which agents are online, offline and in use.
- A run you no longer need holds its parallel job until it ends. Cancel it, and the next job in the queue takes the slot.
- From Microsoft's page on pipelines that don't start: a release or a multi-stage YAML run uses a parallel job only while it deploys to a stage, not while it waits for an approval or a manual intervention; server jobs and deployments to a deployment group use none.
When the job is a pull request's build validation, the pull request waits on it too: Azure DevOps Pull Requests, a plugin for JetBrains IDEs, lists the pull request's branch policies with their state in IntelliJ IDEA, Rider or PyCharm, so you see which build is still queued without opening the browser. Its Pipelines tab (version 1.0.86 and later) lists the runs of the repositories you have open and opens a failed task's log in the editor, free to read.
Other reasons a job waits
- An approval. A stage that waits for an approval or a check does not start, whatever the agents do.
- Demands only some agents meet. When only some agents of the pool have the capabilities the job demands, and those are busy, the job waits for one of them. When none has them, the message is a different one: "No agent found in pool ... which satisfies the specified demands".
- No agent of the pool online. The message can come with
No agents in pool ... are currently able to service this request: start the agents, or check that the agents of the pool are registered and online on the pool's Agents page. - Microsoft-hosted capacity. In one question on Microsoft Q&A, 48 builds waited for more than five hours with
Current parallelism: 0of 20 Microsoft-hosted parallel jobs. Microsoft's moderator answered that the shared Microsoft-hosted capacity in the region was full, and the jobs started when more machines were added. The Azure DevOps status page shows such service problems, including longer queue times for agents. - The free tier. The free Microsoft-hosted parallel job of a private project runs one job at a time, up to 1,800 minutes a month (the limits).
Similar messages
- "No hosted parallelism has been purchased or granted": the organization has no Microsoft-hosted parallel job at all, so the job fails instead of waiting.
- "No agent found in pool ... which satisfies the specified demands": no agent of the pool can run the job, busy or not.
- "ran longer than the maximum time of 60 minutes": the job got an agent and ran out of time. The time in the queue does not count toward it.
Azure DevOps pull requests in IntelliJ IDEA, Rider and PyCharm
Azure DevOps Pull Requests, a plugin by Lesstep for JetBrains IDEs 2024.1 or later and Android Studio, reads the organization, project and repository from your git remote and lists the pull requests that wait for your review in an IDE tool window, on Azure DevOps Services and on Azure DevOps Server. It shows the branch policies of a pull request with their state, so a required build that has not passed is next to its pull request, and with Pro you run a failed or expired build policy again from there. The review inbox is free; voting, commenting, completing and creating are Pro, with a 30-day trial.
Get it on JetBrains Marketplace
Azure DevOps and Azure Pipelines are trademarks of Microsoft Corporation; IntelliJ IDEA, Rider and PyCharm are trademarks of JetBrains s.r.o. This page is not affiliated with or endorsed by Microsoft or JetBrains.
More: No hosted parallelism has been purchased or granted · No agent found in pool which satisfies the specified demands · Build validation · 日本語