> Documentation index: https://sema4.ai/docs/llms.txt
> Web page: https://sema4.ai/docs/v3/task-engine/robot-runs

# Read a robot run

Every robot run has its own page: how it went, what the robot printed, its files, its screen recording, and exactly what it ran.

**Audience:** builders and operators

> **Task Engine is in private preview.** To get access, [contact us](https://sema4.ai/contact-us/).

## Open a run

- **From a work item.** In its **How it got here** list, each task package step lists its runs. Select a run.
- **From an item.** In the work item's **Task items** tab, an item's history links to each run that worked on it.
- **From a worker.** Open **Task Engine**, then **Workers**, and select a worker to see its runs.

Members can open the runs of the work items they can open.

## The run's status

| Status                   | Meaning                                                                                                         |
| ------------------------ | --------------------------------------------------------------------------------------------------------------- |
| **Waiting for a worker** | Every worker the step may use is busy. The run starts when one is idle.                                         |
| **Running**              | A worker is running the robot                                                                                   |
| **Finished**             | The robot ended and reported how it went. Some of its items may still have failed: see **Items**.               |
| **Failed**               | The run failed as a whole, for example because the robot crashed or the worker went offline. The page says why. |
| **Cancelled**            | Someone stopped the step or cancelled the work item                                                             |
| **Nothing to do**        | The step had no items, so no robot ran                                                                          |

## The phases of a run

The **Timeline** tab shows where the time went:

1. **Waiting for a worker**: every worker the step may use is busy. The step checks about once a minute.
2. **Starting**
3. **Download package**
4. **Unpack**
5. **Prepare environment**: the worker builds the robot's Python environment from `conda.yaml`. It doesn't report progress during this part.
6. **Run the robot**
7. **Upload files**: the robot is done, and the worker uploads its logs and files.
8. **Finishing**

A worker builds a package's environment the first time it runs it, which can take several minutes.
Later runs reuse it and usually take under a minute.
When setup took most of the time, the page says **Most of this run was setup**.

## The tabs

| Tab            | What it shows                                                                                                                                                                                                                                             |
| -------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Items**      | Every item the run worked on, with its result. Filter by **Queued**, **In progress**, **Done**, **Failed**, **Not processed**, or **Deleted**. A failed item shows its type, code, and message, for example `BUSINESS · INVALID_ORDER: Invalid ZIP code`. |
| **Artifacts**  | The files the worker uploaded. `console.txt` streams as the robot prints. The robot's HTML log opens in the page.                                                                                                                                         |
| **Timeline**   | The run's phases and how long each took                                                                                                                                                                                                                   |
| **Recording**  | The desktop recording, live or afterwards, when the step records the screen                                                                                                                                                                               |
| **How it ran** | The package version, where it came from, the task, the worker or group, where the items came from, parallel runs, the desktop, and the time limit                                                                                                         |

> **The checksum proves what ran.**
> **How it ran** says **Every machine ran this version** when each worker reported the same checksum for the package as the published version.
> If a machine reported a different checksum, the page says so.

## Item failure types

| Type           | Meaning                                                                                                                            | Usually                                                          |
| -------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------- |
| `BUSINESS`     | The robot says the data is wrong                                                                                                   | Fix the item's data, then resume                                 |
| `APPLICATION`  | The robot says the automation failed, for example a system didn't answer                                                           | Resume when the system is back                                   |
| `ORCHESTRATOR` | Sema4.ai settled the item because the run ended before the robot did, for example after a crash, a stop, or a worker going offline | Check whether its work went through, then resume or mark it done |

See [When items fail](https://sema4.ai/docs/v3/task-engine/failed-items.md).

## Stop the step

While the robots run, **Stop step** on the run page lets the robots finish their current items, stops them at once, or cancels the work item.
See [Stop a robot step while it runs](https://sema4.ai/docs/v3/task-engine/failed-items.md#stop-a-robot-step-while-it-runs).

## How long runs are kept

Robot runs, their artifacts, recordings, and items are kept for 90 days.
After that, a work item that stopped at a robot step can no longer be resumed.
