> For the complete documentation index, see [llms.txt](https://docs.umbraco.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.umbraco.com/umbraco-automate/concepts/runs.md).

# Runs

A run is a single execution of an automation. Every run is recorded with per-step inputs, outputs, errors, and timing.

A run is a single execution of an automation. Every run is captured for audit and debugging.

## What a Run Records

Each run records enough data to trace what happened from trigger to final outcome.

| Field              | Description                                                                      |
| ------------------ | -------------------------------------------------------------------------------- |
| **Status**         | Pending, Running, Completed, Failed, Suspended, Cancelled, or Rejected.          |
| **Initiator**      | Who or what started the run — a user, an event handler, a webhook, a schedule.   |
| **Trigger output** | The data emitted by the trigger.                                                 |
| **Steps**          | For each step: status, input, output, log entries, error, duration, retry count. |
| **Version**        | Which published version of the automation was used.                              |

A run's status is **Rejected**, not **Failed**, when it ends because a human declined a [Request Approval](/umbraco-automate/backoffice/approvals.md) step and nothing else went wrong. It is a terminal status, but not an error — the automation ran exactly as designed.

## Run Detail View

Open a run from the **Runs** view on the automation. The run detail view lists the trigger and each step that ran. Expand a step to see its input, output, and log entries for that run. See [Reviewing Runs](/umbraco-automate/backoffice/runs.md).

## Versioning and Runs

A run always completes on the version of the automation that was live when the run started. Publishing a new version does not affect runs that are already in progress.

## Runs Interrupted by a Restart

If Umbraco stops while a step is running, Automate marks the run as **Failed** when that node starts again. It also stops the run's workflow, so the interrupted step is not run a second time on restart. A step that calls an external service, sends an email, or uses AI credits is therefore not repeated.

If the site stopped abruptly, automations can take up to `WorkflowLock:LeaseDuration` (30 seconds by default) to start running again. Automate first checks whether any other node is still running. A clean shutdown lets the site start straight away.

Runs that were waiting when the site stopped are not affected. For example, a run waiting on a **Delay** or a [Request Approval](/umbraco-automate/backoffice/approvals.md) step continues as normal. The same applies when an approval was decided shortly before the site stopped. The run continues down the path that was chosen.

To run the automation again, use **Replay** on the failed run. See [Reviewing Runs](/umbraco-automate/backoffice/runs.md).

In a load-balanced setup, Automate leaves every run in progress alone while another node is still running. See [Restarting a Node](/umbraco-automate/run-in-production/load-balancing.md#restarting-a-node).

## Retention

Automate deletes runs older than `RunCleanup:RetentionDays` (90 by default). It also keeps at most `RunCleanup:MaxRunsPerAutomation` runs per automation (1,000 by default). See [Run Cleanup](/umbraco-automate/getting-started/configuration.md#run-cleanup).

## See Also

* [Reviewing Runs](/umbraco-automate/backoffice/runs.md)
* [Versioning](/umbraco-automate/concepts/versioning.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.umbraco.com/umbraco-automate/concepts/runs.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
