How to Find how long a Build is Queued from the Logs

Still need help?

The Atlassian Community is here for you.

Ask the community


If a Build is "stuck" queued and not seen to build for a long time, we may want to see how long it takes for the build to be sent to the agent and/or started


  1. Add the following logging to Bamboo using the form at the top of Administration >> Overview >> Log settings:

  2. Run a new build, noting the build key

  3. Find the key for a Job that is queued – eg: PROJ-PLAN-JOB-123
  4. Run one of the following commands – based on your Operating System – on the Bamboo Server:

    egrep 'PROJ-PLAN-JOB-123' <bamboo-home>/logs/atlassian-bamboo.log | grep 'dispatched\|queued\|Sending\|onExecutionStartedTimingPoint'
    findstr <bamboo-home>\logs\atlassian-bamboo.log /c:'PROJ-PLAN-JOB-123' | findstr /rc:"dispatched" /c:"queued" /c:"Sending" /c:"onExecutionStartedTimingPoint"

    The above commands will output the following:

    2017-11-10 11:14:16,199 INFO [AtlassianEvent::0-BAM::EVENTS:pool-1-thread-10] [ChainExecutionManagerImpl] Build PROJ-PLAN-JOB-123 has been dispatched
    2017-11-10 11:14:16,199 INFO [AtlassianEvent::0-BAM::EVENTS:pool-1-thread-2] [ExecutionPhaseServiceImpl] Project - Plan - Job #123 (PROJ-PLAN-JOB-123) queued
    2017-11-10 11:17:04,580 INFO [ActiveMQ Session Task-77807] [BuildQueueManagerImpl] Sending PROJ-PLAN-JOB-123 to agent 1234567890
    2017-11-10 11:17:04,658 DEBUG [bambooAgentMessageListenerConnector-1] [ChainExecutionManagerImpl] onExecutionStartedTimingPoint for PROJ-PLAN-JOB-123
  5. Use the timestamps from the output of grep or findstr to find how long the Job was in each stage of dispatching
    1. Queued:

      - 11:14:16


Last modified on Nov 13, 2017

Was this helpful?

Provide feedback about this article
Powered by Confluence and Scroll Viewport.