# Mix automatic retry with manual retry

**URL:** <https://forum.buildkite.community/t/mix-automatic-retry-with-manual-retry/3341>\
**Category:** Pipelines\
**Created:** [November 2, 2023, 4:22pm UTC](https://forum.buildkite.community/t/mix-automatic-retry-with-manual-retry/3341 "2023-11-02T16:22:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![cwawrzonek](https://avatars.discourse-cdn.com/v4/letter/c/7c8e57/32.png) [@cwawrzonek](https://forum.buildkite.community/u/cwawrzonek)\
**Post date:** [November 2, 2023, 4:22pm UTC](https://forum.buildkite.community/t/mix-automatic-retry-with-manual-retry/3341/1 "2023-11-02T16:22:03Z")

</div>

As a follow up to this post: [Ordering of automatic retry attributes](https://forum.buildkite.community/t/ordering-of-automatic-retry-attributes/3178)

I’d like to do something similar, but after the automatic retry on -1, I’d like to fallback to the default behavior for hard failing but allowing manual retries. Is this possible?

---

<div class="post-metadata">

**Author:** ![stephanie.atte](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/stephanie.atte/32/1357_2.png) [@stephanie.atte](https://forum.buildkite.community/u/stephanie.atte)\
**Post date:** [November 2, 2023, 7:07pm UTC](https://forum.buildkite.community/t/mix-automatic-retry-with-manual-retry/3341/2 "2023-11-02T19:07:49Z")

</div>

Hey @cwawrzonek

Thanks for the message

As seen in the older post

```auto
retry:
      automatic:
        - exit_status: -1
          limit: 2
        - exit_status: "*"
          limit: 1

```

It will fail after the limit for the automatic retries, you should be able to manually retry the last job.

 ![Screenshot 2023-11-02 at 1.05.27 PM](https://us1.discourse-cdn.com/flex016/uploads/buildkite1/original/2X/0/097b9a56d16e6d9c4fbc580a5b6b38e55934f2e3.png)

Cheers!

---

<div class="post-metadata">

**Author:** ![cwawrzonek](https://avatars.discourse-cdn.com/v4/letter/c/7c8e57/32.png) [@cwawrzonek](https://forum.buildkite.community/u/cwawrzonek)\
**Post date:** [November 7, 2023, 5:14pm UTC](https://forum.buildkite.community/t/mix-automatic-retry-with-manual-retry/3341/3 "2023-11-07T17:14:08Z")

</div>

Got it, thank you!

---

<div class="post-metadata">

**Author:** ![cwawrzonek](https://avatars.discourse-cdn.com/v4/letter/c/7c8e57/32.png) [@cwawrzonek](https://forum.buildkite.community/u/cwawrzonek)\
**Post date:** [November 7, 2023, 5:28pm UTC](https://forum.buildkite.community/t/mix-automatic-retry-with-manual-retry/3341/4 "2023-11-07T17:28:31Z")

</div>

Follow up feature request, can you provide a way to set a global retry policy on all steps in a pipeline? I’d like all my steps to retry on agent lost, but don’t want to have to add this to every step

---

<div class="post-metadata">

**Author:** ![stephanie.atte](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/stephanie.atte/32/1357_2.png) [@stephanie.atte](https://forum.buildkite.community/u/stephanie.atte)\
**Post date:** [November 7, 2023, 6:45pm UTC](https://forum.buildkite.community/t/mix-automatic-retry-with-manual-retry/3341/5 "2023-11-07T18:45:37Z")

</div>

Hey @cwawrzonek

Thanks for the follow up.

At the moment the retry is a step-level feature, i know it might be a bit daunting to specify this for each, but we encourage users to use YAML Anchor to avoid having to do the manual work of updating all the steps.

I can raise this with the product team, but not sure if this will be added to the roadmap for now

Cheers!

---

<div class="post-metadata">

**Author:** ![cwawrzonek](https://avatars.discourse-cdn.com/v4/letter/c/7c8e57/32.png) [@cwawrzonek](https://forum.buildkite.community/u/cwawrzonek)\
**Post date:** [November 7, 2023, 7:03pm UTC](https://forum.buildkite.community/t/mix-automatic-retry-with-manual-retry/3341/6 "2023-11-07T19:03:57Z")

</div>

Got it, thanks for the quick response!
