> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fetchhive.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Retrying a run

> Run a workflow again from a step you choose, and keep the results of the steps before it

When a run fails near the end, you don't have to pay for the whole workflow again. **Retry** starts a new run from the step you choose. That step and every step after it run again. The steps before it keep the results they had, so they cost nothing.

For example, a workflow researches a lead, writes an email, and then fails on the step that sends it. Retry from the send step and only that step runs. The research and the email are kept.

## How do I retry a run from a step? [#retry-from-a-step](#retry-from-a-step)

1. Open **Workflows**, click **Logs**, and click the run to open the **Run Console**.
2. Click **Retry**. On a failed run the button reads **Retry from failed step**.
3. Under **Start at**, check the step. It opens on the step the run stopped at. Pick another step if you want to start earlier or later.
4. Read **What will happen**. Each step shows **Runs again** or **Kept**, with the expected cost.
5. Click **Start the retry**.

The Run Console moves to the new run. The original run stays in your logs as it was.

To run every step again, pick **The whole workflow** under **Start at**.

## What is kept and what runs again? [#what-is-kept](#what-is-kept)

* The step you choose runs again.
* Every step that comes after it runs again.
* Every other step that finished keeps its result. Later steps read that result as they did the first time.

The retry uses the workflow as it is now, with the inputs of the original run. If you fixed a step in the editor after the run failed, the retry runs your fixed step.

If you changed a kept step since the run, its old result is still used. Retry from that step when you want its change to count.

## How do loops work? [#loops](#loops)

You retry a loop as one step. Steps inside a loop are not listed on their own.

When some items of a loop finished and some did not, **Only run the items that did not finish** is ticked for you. The finished items keep their results and only the others run. This matters when the loop sends something, such as an email to each lead: the leads that already got the email do not get it twice.

Clear the box to run every item again. Fetch Hive warns you when that would send to items that already finished.

## What does a retry cost? [#cost](#cost)

You pay only for the steps that run again. The sheet shows the expected cost before you start, based on what those steps cost in the original run. When a step did not run before, its cost is not known yet and the sheet says so.

## How do I tell a retry apart in the logs? [#in-the-logs](#in-the-logs)

A retry shows a **Retry** badge in the logs table. Its Run Console says which step it started at, lists the steps it kept, and has an **Open the earlier run** button.

## Can the AI assistant retry from a step? [#assistant](#assistant)

Yes. Ask a connected assistant to retry the run from a step, for example "retry that run from the send step". It shows you what would run again, what is kept and the cost, and starts only after you agree. See [What it can do](https://docs.fetchhive.com/ai-assistant/what-it-can-do.md).

## When can't I retry from a step? [#limits](#limits)

* The run is still going. Wait for it to end, or cancel it first.
* The run is older than your plan's log history. The results of its steps are no longer kept, so run the workflow again.
* The step was removed from the workflow, or the run never reached it.
* The run is a test of a single step. Run the step again in the editor.
* The run is a stage of a pipeline run. Use **Retry from here** on the pipeline run. See [Re-running](../pipelines/re-running).
* The run was started by another workflow. Retry the run that started it.

See also: [Logs](https://docs.fetchhive.com/workflows/logs.md) and [Error Handling](https://docs.fetchhive.com/workflows/error-handling.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.