Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Is there a way to set job execution in a stage

Eugene Jiang
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 5, 2023

I've got a plan that has a few stages, one of the stage is a testing stage, within that stage I've got 25 jobs which means requires 25 agents if I want to execute them all in parallel. But because some of the job actually run pretty fast like less than 5 mins, and some are long like 90 mins. So obviously instead of having 25 agents i've put down 20 (remote agent btw). But the problem is that I don't know how to control the order these 20 jobs gets run. So it end up with 2 of the longest job didn't get into execution at the first batch, in fact they were executed last after waited for 30 mins to have a free agent available.

So my question is there a way to configure these long running job to start in the first, and then for other fast running jobs, they can wait till others finishes. Thanks!

1 answer

2 votes
Ayrijit Swain
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 6, 2023

Hi Eugene,

In a Bamboo plan, the Stages run in sequence, Jobs run in parallel. and Tasks inside a job runs in sequence. There is no explicit way to order the Jobs, bamboo does it randomly based on the build queue and agents available.  suggestion would be and if you can optimize and club short-running jobs so that all the jobs takes more or less similar time to finish and can effectively use all the 20 agents together.

Please refer to KB articles below for additional reads on this topic.

https://confluence.atlassian.com/bamboo/using-stages-in-a-plan-289276862.html 

https://confluence.atlassian.com/bamboo/jobs-and-tasks-289277035.html

Eduardo Alvarenga
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 9, 2023

Hello @Eugene Jiang,

Welcome to Atlassian Community!

On top of @Ayrijit Swain's comment, you can also consider using Dedicated Agents.

Dedicated Agents allow you to always have them available to the long builds while other non-dedicated Agents would be used on the other short builds, on recycled Agents.

Best regards,

Eduardo Alvarenga
Atlassian Support APAC

--please don't forget to Accept the answer if the reply is helpful-- 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events