# Retry from failed incompatible with workflow continuation

**URL:** <https://discuss.circleci.com/t/retry-from-failed-incompatible-with-workflow-continuation/43167>\
**Category:** Bug Reports\
**Tags:** dynamic-config\
**Created:** [March 8, 2022, 3:28am UTC](https://discuss.circleci.com/t/retry-from-failed-incompatible-with-workflow-continuation/43167 "2022-03-08T03:28:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sidpalas](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/sidpalas/32/29566_2.png) [@sidpalas](https://discuss.circleci.com/u/sidpalas)\
**Post date:** [March 8, 2022, 3:28am UTC](https://discuss.circleci.com/t/retry-from-failed-incompatible-with-workflow-continuation/43167/1 "2022-03-08T03:28:22Z")

</div>

I am using a slightly modified version of [GitHub - CircleCI-Public/continuation-orb](https://github.com/CircleCI-Public/continuation-orb)

When retrying a failed workflow, continuation is not possible.

The `api/v2/pipeline/continue` call returns with `{"message":"Pipeline is not in setup state."}`

Is this a known issue / Is there any way to work around this?

---

<div class="post-metadata">

**Author:** ![yannCI](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/yannci/32/24866_2.png) [@yannCI](https://discuss.circleci.com/u/yannCI)\
**Post date:** [June 22, 2022, 1:13pm UTC](https://discuss.circleci.com/t/retry-from-failed-incompatible-with-workflow-continuation/43167/2 "2022-06-22T13:13:27Z")

</div>

Hi @sidpalas,

This outcome is indeed a known limitation of Setup Workflows, and is related to the intrinsic nature of setup workflows.

The `api/v2/pipeline/continue` call can only be successful on pipelines that are in a `setup` state, and updates the related pipeline’s state to `created`.

However, once the pipeline containing the Setup Workflow has been continued, its state is no longer `setup`, hence the outcome you’re seeing.

---

<div class="post-metadata">

**Author:** ![JRoper18](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/jroper18/32/31081_2.png) [@JRoper18](https://discuss.circleci.com/u/JRoper18)\
**Post date:** [September 16, 2022, 10:32am UTC](https://discuss.circleci.com/t/retry-from-failed-incompatible-with-workflow-continuation/43167/3 "2022-09-16T10:32:45Z")

</div>

It also seems this bug happens for us when a setup workflow contains more than one continuation job – the any continuation job that’s not the first one to run always gets this error.

This is kind of horrid. That means if a step that happens before a continuation fails, we can’t retry – instead, we have to make a whole new “dummy commit” and then re-run the whole pipeline. It’s really annoying.

It would be great if setup scripts were still setup scripts during a retry. Or, even better: Make it so that continuation scripts don’t require a script to be a setup script. That would also allow us to chain continuation scripts together, which would be amazing.

---

<div class="post-metadata">

**Author:** ![b0ris](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/b0ris/32/31256_2.png) [@b0ris](https://discuss.circleci.com/u/b0ris)\
**Post date:** [October 1, 2022, 11:29pm UTC](https://discuss.circleci.com/t/retry-from-failed-incompatible-with-workflow-continuation/43167/4 "2022-10-01T23:29:48Z")

</div>

Seem like I’ve just faced the same issue while evaluating a Proof of Concept. Cannot restart setup workflows from the very beginning, neither from CircleCI nor from Github. They all fail with “Pipeline is not in setup state.”  
It is very inflexible as a PR may just require some small infrastructure or semantic changes (we have a script that verifies PR correctness). With the continuation working this way, it may rather become an impediment for our team.

---

<div class="post-metadata">

**Author:** ![vpanta](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/vpanta/32/28383_2.png) [@vpanta](https://discuss.circleci.com/u/vpanta)\
**Post date:** [February 1, 2023, 4:02pm UTC](https://discuss.circleci.com/t/retry-from-failed-incompatible-with-workflow-continuation/43167/5 "2023-02-01T16:02:16Z")

</div>

~~Is there any way to retry said workflow? Right now we have to add a new commit to the branch, whereas we just want to re-run everything from setup-onwards. It’s very frustrating.~~

Edit: Just found that we can use `Trigger Pipeline` to just rerun the entire thing, instead of trying a `rerun from...`, so that works the way we wanted and might solve this case?
