# Runs and their statuses

> The statuses of a run (flow instance) and of its result, and the record each node leaves.

Source: https://docs.sommatic.ai/en/workflows/lifecycle/runs/ (updated 2026-11-26)

A run is one execution of a workflow: a **flow instance** that the engine moves from node to node, a **flow instance result** that the Runs tab lists, and one **node execution** per step.

## Run statuses

A run's flow instance is created with status `running`. When the engine finishes, the run becomes:

- `completed` when the engine finished and the last node did not leave through `error`;
- `failed` when the engine stopped on an error, or the last node left through `error`.

The flow instance model also defines `waiting`, `suspended`, `cancelled`, `paused`, `review` and `archived`. A
workflow paused for `prod` creates its runs directly as `paused` (see [Publishing](https://docs.sommatic.ai/en/workflows/publishing.md)).

The flow instance result, which feeds the **Runs** tab, uses `running`, `completed` and `failed`. It is created as
`running` as soon as the run starts, so a run appears in the list before it finishes.

## Next steps

- [Drafts and versions](https://docs.sommatic.ai/en/workflows/lifecycle/versions.md): From draft to an immutable version, and which mode runs what.
- [How a node runs](https://docs.sommatic.ai/en/workflows/lifecycle/node-execution.md): Each node is a Link Loom worker: spawn, activate, stop.
- [Worker state machine](https://docs.sommatic.ai/en/workflows/lifecycle/worker-states.md): Seven states, nine events and the hook each transition runs.
- [When a node fails](https://docs.sommatic.ai/en/workflows/lifecycle/failures.md): Error port or crash, and how each one ends the run.
- [Isolation and sandboxes](https://docs.sommatic.ai/en/workflows/lifecycle/isolation.md): Workers, expression contexts and code sandboxes.
