# How to get sequencial job to execute even if previous ones fail

**URL:** <https://discuss.circleci.com/t/how-to-get-sequencial-job-to-execute-even-if-previous-ones-fail/36638>\
**Category:** Build Environment\
**Created:** [July 10, 2020, 2:01pm UTC](https://discuss.circleci.com/t/how-to-get-sequencial-job-to-execute-even-if-previous-ones-fail/36638 "2020-07-10T14:01:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![gempain](https://avatars.discourse-cdn.com/v4/letter/g/e8c25b/32.png) [@gempain](https://discuss.circleci.com/u/gempain)\
**Post date:** [July 10, 2020, 2:01pm UTC](https://discuss.circleci.com/t/how-to-get-sequencial-job-to-execute-even-if-previous-ones-fail/36638/1 "2020-07-10T14:01:47Z")

</div>

Hi,

Given the following partial configuration, how can I make `job2` execute no matter the status of `job1` ?

```auto
jobs:
  job1: ...
  job2: ...

workflows:
  main:
    jobs:
      - job1
      - job2:
        requires:
          - job1

```

---

<div class="post-metadata">

**Author:** ![thekatertot](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/thekatertot/32/25169_2.png) [@thekatertot](https://discuss.circleci.com/u/thekatertot)\
**Post date:** [July 15, 2020, 8:31pm UTC](https://discuss.circleci.com/t/how-to-get-sequencial-job-to-execute-even-if-previous-ones-fail/36638/2 "2020-07-15T20:31:36Z")

</div>

Hi @gempain! Thanks for coming back to the community. I would start with this [post](https://discuss.circleci.com/t/how-to-run-two-jobs-sequentially-always-running-the-second-if-the-first-fails/25351), which I think is trying to do the same thing. If that doesn’t address it, maybe you can explain some of the differences so we can investigate more.

---

<div class="post-metadata">

**Author:** ![gempain](https://avatars.discourse-cdn.com/v4/letter/g/e8c25b/32.png) [@gempain](https://discuss.circleci.com/u/gempain)\
**Post date:** [July 17, 2020, 2:35pm UTC](https://discuss.circleci.com/t/how-to-get-sequencial-job-to-execute-even-if-previous-ones-fail/36638/3 "2020-07-17T14:35:48Z")

</div>

Hi there, thanks for the reply. Yup, sounds like that thread is trying to do the same, but I feel like the example I gave is a little more straight forward.

I was aware that you could use `when: always` on a `step` inside a `job`, but that’s not what I’m looking for. What I want, is a way to say `job2` should be executed **after `job1` is done** , no matter the output of `job1` (both on success or failure to be more accurate).

I’ll give you an example use case to show you why `when: always` at the `step` level isn’t sufficient. Say we have 3 jobs:

- `job1` runs tests in a `node:11` Docker image
- `job2` runs tests in a `node:12` Docker image
- `job3` sends a notification webhook with the status of the build

I want `job3` to be executed **after** `job1` AND **after** `job2`, whether one of them failed or not, because I’d like to send a webhook somwhere to say something like `all jobs passed` or `some jobs failed`.

---

<div class="post-metadata">

**Author:** ![thekatertot](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/thekatertot/32/25169_2.png) [@thekatertot](https://discuss.circleci.com/u/thekatertot)\
**Post date:** [July 20, 2020, 8:08pm UTC](https://discuss.circleci.com/t/how-to-get-sequencial-job-to-execute-even-if-previous-ones-fail/36638/4 "2020-07-20T20:08:50Z")

</div>

I think I understand. Let me look into it and I’ll try to respond ASAP.

Update:

@gempain This is not possible at the moment, but you can upvote this idea [here](https://ideas.circleci.com/ideas/CCI-I-899) to help us prioritize it. Thanks!

---

<div class="post-metadata">

**Author:** ![utarit](https://avatars.discourse-cdn.com/v4/letter/u/d78d45/32.png) [@utarit](https://discuss.circleci.com/u/utarit)\
**Post date:** [October 15, 2024, 9:48am UTC](https://discuss.circleci.com/t/how-to-get-sequencial-job-to-execute-even-if-previous-ones-fail/36638/5 "2024-10-15T09:48:59Z")

</div>

Is this possible now?

---

<div class="post-metadata">

**Author:** ![sebastian-lerner](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/sebastian-lerner/32/27833_2.png) [@sebastian-lerner](https://discuss.circleci.com/u/sebastian-lerner)\
**Post date:** [October 15, 2024, 10:16pm UTC](https://discuss.circleci.com/t/how-to-get-sequencial-job-to-execute-even-if-previous-ones-fail/36638/6 "2024-10-15T22:16:00Z")

</div>

> [@gempain](#):
>
> ation, how can I make `job2` execute no matter the status of `job1` ?

This is in development, you can give feedback on Nathan’s post [here](https://circleci.canny.io/cloud-feature-requests/p/option-to-allow-failures-in-fan-inout-workflow).
