Builds queue when agents have more than one executor in HA (active/active) controllers

2 minute readKnowledge baseLast reviewed 2026-10-08 ()

Issue

After enabling High Availability (HA) (active/active) on a controller, builds can remain queued even though agents or cloud capacity appear to be available. This typically happens when one or more agents or agent templates are configured with more than one executor.

You will also see the following message in your pending build logs: MyBuild#1 is using MyAgent

Environment

Explanation

In HA (active/active) mode, each controller replica can only route a build to an agent connected to that same replica. An agent with multiple executors cannot have those executors shared across replicas. Because of this, Cloudbees CI does not support agents configured with more than one executor in HA (active/active) mode. Cloud-provisioned agents, such as Kubernetes agents, are usually not affected, because they normally define only one executor by default. This issue typically appears when an agent was configured with more than one executor before HA was enabled, or when a permanent or static agent is configured with multiple executors directly instead of using the HA-specific multi-executor option described in the Resolution section.

Resolution

  1. Navigate to Manage Jenkins  Nodes or Manage Jenkins  Clouds depending on the type of agent.

  2. Enter the configuration page for the desired agent.

  3. Set Number of Executors to 1 on the agent.

  4. For permanent or static agents that require more than one executor, do not set Number of Executors above 1 directly. Instead, configure the agent to simulate a multi-executor agent for HA:

    • In Node Properties select HA agent with multiple executors, then set the number of executors.

    • From Configuration as Code (CasC): keep numExecutors: 1 and add the cloudbeesHighAvailabilityMultipleExecutors node property with the required numExecutors value. See example below:

jenkins: nodes: - permanent: launcher: "inbound" name: "MyAgent" nodeProperties: - cloudbeesHighAvailabilityMultipleExecutors: numExecutors: 2
▼
This article is part of our Knowledge Base and is provided for guidance-based purposes only. The solutions or workarounds described here are not officially supported by Cloudbees and may not be applicable in all environments. Use at your own discretion, and test changes in a safe environment before applying them to production systems.