> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/harness-ai/use-harness-platform/pipelines/failure-handling/resume-pipeline-deployments.md).

# Retry failed executions from any stage

Resume pipeline executions from any successful or failed stage to avoid rerunning the entire pipeline.

Pipeline executions fail for many reasons, such as infrastructure changes or changes to resource access. In such cases, rerunning an entire pipeline can be costly and time-consuming.

With Harness, you can resume pipeline executions from any successful stage or a failed stage. This enables you to quickly rerun stages after you identify and fix the cause of the failure.

***

### What you will learn from this topic

* How to understand the [difference between retrying and rerunning](#retry-vs-rerun) a pipeline or stage.
* How to [retry a failed pipeline execution](#retry-a-failed-pipeline-execution) from a specific stage.

***

### Before you begin

* **Pipeline permissions:** You must have Execute permissions on pipelines to retry failed executions. For more information, refer to [Manage roles](/harness-ai/use-harness-platform/platform-access-control/add-manage-roles.md) and [Permissions reference](/harness-ai/use-harness-platform/platform-access-control/permissions-reference.md).
* **Failed pipeline:** You need a pipeline that is in **Failed**, **Aborted**, **Expired**, or **Rejected** status.

***

### Retry vs. rerun

Retrying a pipeline or stage is different from rerunning a pipeline or stage:

* **Rerun:** When you rerun, you start fresh. You can select new values for [runtime inputs](/harness-ai/use-harness-platform/variables-and-expressions/runtime-inputs.md). You can rerun the entire pipeline or [rerun from a specific stage](/harness-ai/use-harness-platform/pipelines/run-specific-stage-in-pipeline.md).
* **Retry:** When you retry, you run the pipeline or stage exactly as it was run before. You cannot change mandatory settings, parameters, or conditions. You cannot retry any execution whose first (original) execution is more than 30 days old.

***

### Retry a failed pipeline execution

Perform the following steps to retry a failed pipeline execution:

1. Navigate to the execution history and locate the failed pipeline.
2. Click **More Options** (⋮), and then click **Retry Failed Pipeline**.
3. In the **Retry Failed Pipeline** settings, select the stage from which you want to retry the pipeline. If your pipeline uses [runtime inputs](/harness-ai/use-harness-platform/variables-and-expressions/runtime-inputs.md), these are automatically populated from the previous execution.

![](https://173309742-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3F2TpHXhur2QtQnORSM9%2Fuploads%2Fgit-blob-a5c584035ac52be0f843b4917b6658c06c5663e1%2Fresume-pipeline-deployments-02.png?alt=media)

4. Click **Retry Failed Pipeline**.

{% hint style="info" %}
**Parallel stages**

If your pipeline contains parallel stages and one of those stages fails, you can choose to retry only the failed parallel stage or retry all parallel stages.
{% endhint %}

***

### Next steps

* [Define a failure strategy on stages and steps](/harness-ai/use-harness-platform/pipelines/failure-handling/define-a-failure-strategy-on-stages-and-steps.md): Configure automated failure handling strategies to reduce manual intervention.
* [Run specific stages in a pipeline](/harness-ai/use-harness-platform/pipelines/run-specific-stage-in-pipeline.md): Learn how to rerun a pipeline from a specific stage instead of retrying.

{% @harness-feedback/feedback module="harness-ai" pagePath="harness-ai/use-harness-platform/pipelines/failure-handling/resume-pipeline-deployments" %}
