# How to execut deploys sequentially?

**URL:** <https://discuss.circleci.com/t/how-to-execut-deploys-sequentially/38010>\
**Category:** Build Environment\
**Created:** [November 5, 2020, 2:25pm UTC](https://discuss.circleci.com/t/how-to-execut-deploys-sequentially/38010 "2020-11-05T14:25:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![problemator](https://avatars.discourse-cdn.com/v4/letter/p/9d8465/32.png) [@problemator](https://discuss.circleci.com/u/problemator)\
**Post date:** [November 5, 2020, 2:25pm UTC](https://discuss.circleci.com/t/how-to-execut-deploys-sequentially/38010/1 "2020-11-05T14:25:58Z")

</div>

In circleCi deploys are executed parallely.  
Could you tell me how to execut deploys sequentially?

For example I have 3 deploys like below.

I need to execut deploy-1 then deploy-2 then deploy-3  
There is no need to have a deploy success to each other.  
I just do not want to execut these deploys parallely.

workflows:  
version: 2  
build-and-deploy:  
jobs:  
- build:  
- deploy:  
name: **deploy-1**  
context: k8s  
namespace: “test”  
requires:  
- decrypt-test  
filters:  
branches:  
only: test  
- deploy:  
name: **deploy-2**  
context: k8s  
namespace: “test”  
requires:  
- decrypt-test  
filters:  
branches:  
only: test  
- deploy:  
name: **deploy-3**  
context: k8s  
namespace: “test”  
requires:  
- decrypt-test  
filters:  
branches:  
only: test

---

<div class="post-metadata">

**Author:** ![bytesguy](https://avatars.discourse-cdn.com/v4/letter/b/0ea827/32.png) [@bytesguy](https://discuss.circleci.com/u/bytesguy)\
**Post date:** [November 6, 2020, 10:13pm UTC](https://discuss.circleci.com/t/how-to-execut-deploys-sequentially/38010/2 "2020-11-06T22:13:30Z")

</div>

👋 Running jobs sequentially without using `requires:` (meaning the job will only run if the requires job is successful) is not functionality that is built into CircleCI.

There is a post on our ideas site that discusses marking jobs as optional and would assist in helping jobs continue to run even if the job before it fails. Additionally please feel free to open a new feature request if this one doesn’t quite align with what you are looking for! All the votes and comments help us shape the future of CircleCI

> **[Support for conditional jobs in workflows | Cloud Feature Requests | CircleCI...](https://ideas.circleci.com/cloud-feature-requests/p/support-for-conditional-jobs-in-workflows)**

There is an Orb that may help with setting up sequential jobs. The Queue Orb should allow you to enforce these jobs are run sequentially and includes many options to configure this to your needs:

> **[CircleCI Developer - Orbs](https://circleci.com/developer/orbs/orb/eddiewebb/queue)**

> **[eddiewebb/circleci-queue](https://github.com/eddiewebb/circleci-queue)**
>
> CircleCI orb to block/queue jobs to enforce max concurrency limits - eddiewebb/circleci-queue

I hope this helps!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [November 7, 2020, 11:11am UTC](https://discuss.circleci.com/t/how-to-execut-deploys-sequentially/38010/4 "2020-11-07T11:11:18Z")

</div>


