# Is deploying to multiple providers done sequentially?

**URL:** https://travis-ci.community/t/is-deploying-to-multiple-providers-done-sequentially/11134
**Category:** Travis CI Discussions & Feedback
**Created:** [February 3, 2021, 6:52am UTC](https://travis-ci.community/t/is-deploying-to-multiple-providers-done-sequentially/11134 "2021-02-03T06:52:51Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![gdungca](https://avatars.discourse-cdn.com/v4/letter/g/e47c2d/32.png) [@gdungca](https://travis-ci.community/u/gdungca)
#### Post date: [February 3, 2021, 6:52am UTC](https://travis-ci.community/t/is-deploying-to-multiple-providers-done-sequentially/11134/1 "2021-02-03T06:52:51Z")

</div>

Is the deployment to each provider done sequentially in the order specified in the config? For example, would `cloudcontrol` run and complete before running `heroku`? Thanks in advance.

```auto
deploy:
  - provider: cloudcontrol
    email: "YOUR CLOUDCONTROL EMAIL"
    password: "YOUR CLOUDCONTROL PASSWORD"
    deployment: "APP_NAME/DEP_NAME"
  - provider: heroku
    api_key: "YOUR HEROKU API KEY"

```

> **[Travis CI Documentation](https://docs.travis-ci.com/user/deployment/#deploying-to-multiple-providers)**
>
> Deployment

---

<div class="post-metadata">

### Author: ![native-api](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/native-api/32/430_2.png) [@native-api](https://travis-ci.community/u/native-api)
#### Post date: [February 3, 2021, 8:58pm UTC](https://travis-ci.community/t/is-deploying-to-multiple-providers-done-sequentially/11134/2 "2021-02-03T20:58:06Z")

</div>

Yes. All steps in the job’s lifecycle are done sequentially, one after another.

> **[Travis CI Documentation](https://docs.travis-ci.com/user/job-lifecycle/#deploying-your-code)**
>
> Job Lifecycle

---

<div class="post-metadata">

### Author: ![gdungca](https://avatars.discourse-cdn.com/v4/letter/g/e47c2d/32.png) [@gdungca](https://travis-ci.community/u/gdungca)
#### Post date: [February 4, 2021, 9:15pm UTC](https://travis-ci.community/t/is-deploying-to-multiple-providers-done-sequentially/11134/3 "2021-02-04T21:15:37Z")

</div>

Thanks for the confirmation, though I don’t see mention of that in the section that you linked.

---

<div class="post-metadata">

### Author: ![native-api](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/native-api/32/430_2.png) [@native-api](https://travis-ci.community/u/native-api)
#### Post date: [February 5, 2021, 1:24am UTC](https://travis-ci.community/t/is-deploying-to-multiple-providers-done-sequentially/11134/4 "2021-02-05T01:24:56Z")

</div>

That’s because it kinda goes without saying since it’s the default of how any job script works.

If you have multiple tasks running in parallel, their output would get mixed up and be impossible to follow and diagnose. Not to mention the logic would be harder to write and more error-prone due to all sorts of potential race conditions.

You can suggest an improvement to that documentation page using the “improve this page on Github” link on top of it if you wish.
