Runs
A run is one execution of a run spec on a runner: a container, or a virtual machine for runs that need a whole system. It starts, does its job and ends with an exit code. Forge keeps what it did afterwards.
States
| State | Meaning |
|---|---|
| Awaiting approval | A run from a fork, or a deploy to a protected environment, waits for someone to approve it. |
| Queued | Waiting for a runner that fits it. Its page says why it waits. |
| Scheduled | A runner took it. |
| Pulling | The runner fetches its image. |
| Starting | Its container or VM is being set up. |
| Running | Its commands run. |
| Succeeded | It ended with exit code 0. |
| Failed | It ended with another exit code, or something it needed failed (an image pull, a push). |
| Timed out | It ran longer than its timeout and was stopped. |
| Cancelled | Someone cancelled it. |
| Lost | Its runner went away while it ran. A lost run can be retried by itself. |
What a run keeps
- Its output, line by line, with the time of each line.
- Its events: each state change and what happened along the way.
- Artifacts: files it saved for later, to download or for the next step of a flow.
- Outputs: short values it wrote for later steps or for you to read.
- Its resource use: CPU, memory, disk and network over time.
Ended runs are removed after the organization's retention period, with their output and artifacts. Keep a run to hold on to it.
Retries
A run can be retried by itself when it fails, times out or is lost: the spec says how often and on what. Each try is its own run, linked to the first.
Debugging
A failed run can be re-run with debug: Forge starts it again and, once its process fails,
holds the container so you can open a shell in it, from the console or with forge debug.