# Drone exec doesn't execute multi-machine pipeline

**URL:** <https://drone.discourse.group/t/drone-exec-doesnt-execute-multi-machine-pipeline/5743>\
**Category:** Drone Support\
**Created:** [March 27, 2019, 12:28pm UTC](https://drone.discourse.group/t/drone-exec-doesnt-execute-multi-machine-pipeline/5743 "2019-03-27T12:28:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![lockwooddev](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/lockwooddev/32/4848_2.png) [@lockwooddev](https://drone.discourse.group/u/lockwooddev)\
**Post date:** [March 27, 2019, 12:28pm UTC](https://drone.discourse.group/t/drone-exec-doesnt-execute-multi-machine-pipeline/5743/1 "2019-03-27T12:28:11Z")

</div>

Hi,

I recently migrated from 0.8 to 1.0 and noticed that parallel pipeline steps with the `group` field have been removed. Now I tried using a multi-machine pipeline, but this doesn’t work for development when using `drone exec`. Only the first pipeline step is executed this way.

Am I missing something?

```auto
---
kind: pipeline
name: foo

steps:
- name: build
  image: alpine
  commands:
  - sleep 1
  - echo "foo"
  - sleep 1
  - echo "foo"
  - sleep 1

---
kind: pipeline
name: bar

steps:
- name: build
  image: alpine
  commands:
  - sleep 1
  - echo "bar"
  - sleep 1
  - echo "bar"
  - sleep 1

```

---

<div class="post-metadata">

**Author:** ![lockwooddev](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/lockwooddev/32/4848_2.png) [@lockwooddev](https://drone.discourse.group/u/lockwooddev)\
**Post date:** [March 27, 2019, 12:52pm UTC](https://drone.discourse.group/t/drone-exec-doesnt-execute-multi-machine-pipeline/5743/2 "2019-03-27T12:52:07Z")

</div>

The only way to force parallelism is to have an extra empty pipeline step with `depends_on`. This is a bit weird

```auto
kind: pipeline
name: in_parallel

steps:
- name: foo
  image: alpine
  commands:
  - sleep 1
  - echo "foo"
  - sleep 1
  - echo "foo"
  - sleep 1

- name: bar
  image: alpine
  commands:
  - echo "bar"
  - sleep 1
  - echo "bar"

- name: force_parallel
  image: alpine
  depends_on:
    - foo
    - bar

```

---

<div class="post-metadata">

**Author:** ![orhanhenrik](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/orhanhenrik/32/4926_2.png) [@orhanhenrik](https://drone.discourse.group/u/orhanhenrik)\
**Post date:** [March 28, 2019, 10:02am UTC](https://drone.discourse.group/t/drone-exec-doesnt-execute-multi-machine-pipeline/5743/3 "2019-03-28T10:02:24Z")

</div>

You can put `depends_on: [clone]` on the first two steps to make them parallel, then you shouldn’t need the third step. This is because they run in serial if there is no `depends_on` in any step, probably to make simple pipelines easier to read and write.

---

<div class="post-metadata">

**Author:** ![lockwooddev](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/lockwooddev/32/4848_2.png) [@lockwooddev](https://drone.discourse.group/u/lockwooddev)\
**Post date:** [March 28, 2019, 1:25pm UTC](https://drone.discourse.group/t/drone-exec-doesnt-execute-multi-machine-pipeline/5743/4 "2019-03-28T13:25:23Z")

</div>

That doesn’t actually work. When adding `depends_on` to the first steps you get with the latest drone cli (1.0.7):

```auto
2019/03/28 15:23:35 missing vertex

```

---

<div class="post-metadata">

**Author:** ![bradrydzewski](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/bradrydzewski/32/3513_2.png) [@bradrydzewski](https://drone.discourse.group/u/bradrydzewski)\
**Post date:** [March 28, 2019, 2:44pm UTC](https://drone.discourse.group/t/drone-exec-doesnt-execute-multi-machine-pipeline/5743/5 "2019-03-28T14:44:24Z")

</div>

`depends_on: [clone]` works with the server, but does not work with the CLI

---

<div class="post-metadata">

**Author:** ![lockwooddev](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/lockwooddev/32/4848_2.png) [@lockwooddev](https://drone.discourse.group/u/lockwooddev)\
**Post date:** [March 28, 2019, 2:46pm UTC](https://drone.discourse.group/t/drone-exec-doesnt-execute-multi-machine-pipeline/5743/6 "2019-03-28T14:46:33Z")

</div>

Is there a way to make it work with the CLI?
