Search code examples
azureazure-devopscontinuous-deploymentazure-pipelines-yamlazure-deployment

"The agent request is not running because all potential agents are running other requests." (self hosted agents)


Running pipeline for ci/cd DSC causes queued items title error message. Worked a month ago without queueing. Rebooted AzureDevops server. Deleted client in deployment pool that was not responding. No parallel jobs info since this is hosted on our server - option is not available.

The agent pool is online and I've updated the client version.


Solution

  • The agent request is not running because all potential agents are running other requests. (self hosted agents)

    When you add tasks to the Pipeline, it could automatically add agent demands.

    For example:

    enter image description here

    In this case, when running the pipeline, it will stuck in queue if there is no agent can meet the demands.

    enter image description here

    You can check the Agent demands in the Pipeline and the Agent Capabilities in Agent Pool -> Target Agent -> Capabilities. The configuration required in agent demands needs to match the configuration in agent capabilities.

    If you are using the YAML Pipeline, there is no field to check the default Agent demands.

    You can manually create a Classic Pipeline and add the same tasks to the Classic Pipeline. Then you can check the default agent demands.