Missed Team ’24? Catch up on announcements here.

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

Is it possible to have build steps that are parallel in a runner?

Martin Nicolaides June 22, 2021

In a Runner setup the following steps don't run in parallel. One will run and the other is queued.

pipelines:  
  custom:    
    customPipelineWithRunnerStep:      
      - parallel:        
        - step:
          name: Build 1
size: 2x #8 GB
runs-on:
- 'build'
- 'test'
- 'self.hosted'
- 'linux'
services:
- docker
caches:
- docker
- dotnetcore       

          script:
            build.sh
        - step:
          name: Build 2
size: 2x #8 GB         

runs-on:
- 'build'
- 'test'
- 'self.hosted'
- 'linux'
services:
- docker
caches:
- docker
- dotnetcore  

          script:
            build.sh

          

1 answer

1 accepted

1 vote
Answer accepted
Syahrul
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 12, 2022

Hi @Martin Nicolaides 

G'Day!

Each step uses one runner that has been configured. If you run parallel steps, you are running multiple steps at the same time so it will look for all available runners. 

However, if you only have one runner configured then this will cause the parallel step to queue up because it's waiting for the first steps to complete so it frees up the runner. This will repeat each parallel step until all steps are complete.

If you wish to have all parallel steps run together then you'll have to add more runners. For example, you have 5 parallel steps, you need to add 5 runners so that when the parallel steps run it has 5 available runner resources.

I hope this clarifies, let me know if you have any additional questions.

I hope this clarifies.

Cheers,
Syahrul

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events