# Parallel execution in Drone 1.0.0

**URL:** <https://drone.discourse.group/t/parallel-execution-in-drone-1-0-0/4393>\
**Category:** Drone Support\
**Created:** [November 30, 2018, 5:19pm UTC](https://drone.discourse.group/t/parallel-execution-in-drone-1-0-0/4393 "2018-11-30T17:19:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![allanrenucci](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/allanrenucci/32/3878_2.png) [@allanrenucci](https://drone.discourse.group/u/allanrenucci)\
**Post date:** [November 30, 2018, 5:19pm UTC](https://drone.discourse.group/t/parallel-execution-in-drone-1-0-0/4393/1 "2018-11-30T17:19:46Z")

</div>

Hello,

In Drone 1.0.0, is there something equivalent to the Drone 0.8 group attribute for parallel execution of build steps?

Thanks,  
Allan

---

<div class="post-metadata">

**Author:** ![djmaze](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/djmaze/32/3788_2.png) [@djmaze](https://drone.discourse.group/u/djmaze)\
**Post date:** [November 30, 2018, 10:03pm UTC](https://drone.discourse.group/t/parallel-execution-in-drone-1-0-0/4393/2 "2018-11-30T22:03:09Z")

</div>

I think this is what [Multi-Machine Pipelines](https://readme.drone.io/config/pipeline/multi-machine/) are for.

---

<div class="post-metadata">

**Author:** ![robert-bo-davis](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/robert-bo-davis/32/5149_2.png) [@robert-bo-davis](https://drone.discourse.group/u/robert-bo-davis)\
**Post date:** [December 1, 2018, 12:40pm UTC](https://drone.discourse.group/t/parallel-execution-in-drone-1-0-0/4393/3 "2018-12-01T12:40:37Z")

</div>

You can use multiple pipelines and `depends_on` to control parallel pipeline execution even on a single machine. In this example build-1 and build-2 will execute in parallel and build-3 will wait for them to complete:

```auto
---
kind: pipeline
name: build-1

steps:
  - name: build
    image: plugins/docker
    ...
    
---
kind: pipeline
name: build-2

steps:
  - name: build
    image: plugins/docker
    ...

---
kind: pipeline
name: build-3

depends_on:
  - build-1
  - build-2

steps:
  - name: build
    image: plugins/docker
    ...

```

---

<div class="post-metadata">

**Author:** ![allanrenucci](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/allanrenucci/32/3878_2.png) [@allanrenucci](https://drone.discourse.group/u/allanrenucci)\
**Post date:** [December 1, 2018, 1:08pm UTC](https://drone.discourse.group/t/parallel-execution-in-drone-1-0-0/4393/4 "2018-12-01T13:08:49Z")

</div>

The documentation suggest this is still supported though and should be preferred over multi-machine pipelines:

> Please be warned that most projects do not require multi-machine pipelines. You should exhaust every other option, including **parallel pipeline steps**

But I can’t get it to work:

```yml
kind: pipeline
name: default

steps:
- name: test1
  image: ...
  group: tests
  commands:
  - ...

- name: test2
  image: ...
  group: tests
  commands:
  - ...

```

Maybe the syntax changed?

---

<div class="post-metadata">

**Author:** ![robert-bo-davis](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/robert-bo-davis/32/5149_2.png) [@robert-bo-davis](https://drone.discourse.group/u/robert-bo-davis)\
**Post date:** [December 1, 2018, 4:47pm UTC](https://drone.discourse.group/t/parallel-execution-in-drone-1-0-0/4393/5 "2018-12-01T16:47:46Z")

</div>

You are correct. I found the multi-machine pipeline solution in a discussion @bradrydzewski had about parallel execution at some point. I can’t seem to find it now. I’m currently using the “multi-machine pipeline” solution with a node filter so it isn’t really multi-machine. It isn’t pretty, but it works. Parallel step execution would be cleaner and reduce the complexity. I hope there is just a syntax change that we are both missing.

---

<div class="post-metadata">

**Author:** ![yellowmegaman](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/yellowmegaman/32/3786_2.png) [@yellowmegaman](https://drone.discourse.group/u/yellowmegaman)\
**Post date:** [December 3, 2018, 1:02pm UTC](https://drone.discourse.group/t/parallel-execution-in-drone-1-0-0/4393/6 "2018-12-03T13:02:16Z")

</div>

Brad told me in gitter that `group` is not (yet?) implemented in 1.0.0
