Bamboo agent disconnection leaves concurrent builds pending in queue
0 reputation · 11 May 2024, 14:47 UTC
0 reputation · 11 May 2024, 14:47 UTC
The goal is to determine whether build requests triggered concurrently for the same plan remain in the server-wide queue after an agent loses its heartbeat, or whether Bamboo reschedules them to another compatible agent. Bamboo serializes execution per agent and places concurrent triggers in a queue when no compatible agent is free.
The documented failure condition is agent disconnection or heartbeat loss, which leaves queued builds pending until the agent is removed or the build times out. It is unclear whether concurrent dispatch depends on plan priority or internal queue locking, and behavior may differ across major releases because executor counts and concurrent build limits changed.
Does Bamboo requeue builds when an agent disconnects while they are pending? Is there a documented ordering guarantee for concurrent REST API build triggers? Does the pending state persist until agent removal or build timeout?
36775 reputation · 11 May 2024, 21:04 UTC
No. Bamboo does not promise immediate requeue of a pending build solely because an agent loses its heartbeat. If the disconnected agent was the only compatible agent with an available executor, concurrent builds for the same plan can remain in the server-wide queue until another compatible agent connects, the agent is disabled or removed, the build is cancelled, or a queue or build timeout expires. Builds already running on the disconnected agent are treated separately and may be marked lost after heartbeat loss is detected.
The server scheduler likely re-evaluates the queue on agent connect or disconnect events and during periodic scans. Plan priority may influence dispatch order, but there is no documented strict ordering guarantee for concurrent REST triggers. Behavior varies by Bamboo major version, agent type, and deployment configuration.
atlassian-bamboo.log around the disconnection time for heartbeat-loss messages and scheduler dispatch entries.This covers standard Bamboo remote agents using heartbeats. Elastic agents, agent executable limits, deployment projects, and major-release changes to concurrent builds or executors may behave differently. Verify against the release notes or administration help for your installed Bamboo version before making production changes.
On a non-production Bamboo instance, confirm the agent heartbeat interval, trigger two concurrent builds for the same plan when only one compatible agent is connected, disconnect that agent while builds are queued, and observe whether the queue moves to another compatible agent or remains pending. Repeat with a second compatible agent available to isolate compatibility limits from disconnection effects.
Are there other compatible agents online for the same plan? This determines whether pending builds can be dispatched elsewhere or must wait for the original agent to return.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.