# Pipeline states

**URL:** <https://discuss.circleci.com/t/pipeline-states/39687>\
**Category:** API\
**Tags:** pipelines\
**Created:** [April 7, 2021, 11:10am UTC](https://discuss.circleci.com/t/pipeline-states/39687 "2021-04-07T11:10:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![madisp](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/madisp/32/27117_2.png) [@madisp](https://discuss.circleci.com/u/madisp)\
**Post date:** [April 7, 2021, 11:10am UTC](https://discuss.circleci.com/t/pipeline-states/39687/1 "2021-04-07T11:10:50Z")

</div>

Hi what are the pipeline states and what’s the rough transition order? The documentation in [CircleCI API](https://circleci.com/docs/api/v2/#operation/getPipelineById) just lists them:

```
state required string
Enum: "created" "errored" "setup-pending" "setup" "pending"

The current state of the pipeline.
```

---

<div class="post-metadata">

**Author:** ![aaronclark](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/aaronclark/32/31078_2.png) [@aaronclark](https://discuss.circleci.com/u/aaronclark)\
**Post date:** [April 23, 2021, 6:45am UTC](https://discuss.circleci.com/t/pipeline-states/39687/2 "2021-04-23T06:45:44Z")

</div>

Hi @madisp,

The pipeline states are those which you have mentioned, but here is the general flow for the transitions:

1. Regular Pipelines  
a. created → pending → (no error) → created  
b. created → pending → (error) → errored

2. Pipelines with Setup Workflows  
a. created → setup-pending → setup → (no error) → (continuation request) → pending → (no error) → created  
b. created → setup-pending → setup → (error) → errored  
c. created → setup-pending → setup → (no error) → (continuation request) → pending → (error) → errored

There might be one or two cases missing from the above depending on where an error occurs.

In the setup workflow flow, continuation request is referring to a step that happens when creating a dynamic workflow. Documentation of the API for this can be found here as well:

[https://circleci.com/docs/api/v2/#operation/continuePipeline](https://circleci.com/docs/api/v2/#operation/continuePipeline)

Let me know if you have any additional questions!

---

<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:** [October 22, 2021, 8:46am UTC](https://discuss.circleci.com/t/pipeline-states/39687/3 "2021-10-22T08:46:29Z")

</div>

Closed on October 22, 2021, 8:46am UTC

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
