# CapsuleProcessCommandStatus

Where a command queued on a capsule run is. `Finished`, `Error` and `AbortedOnTermination` are final.

**Kind:** a string enum, used in requests and responses.

## Values

| Value | Description |
|---|---|
| `"Pending"` | Queued, and waiting its turn. |
| `"Running"` | Executing. |
| `"Finished"` | Done. For a shell command, it exited with code 0. |
| `"Error"` | Failed, exited with a non-zero code, or ran past its time limit: `failureDetails` says why. |
| `"AbortedOnTermination"` | The capsule run ended before the command finished, or before it started. |

New values can appear, so treat one you don't know as "something else", not as an error.

## Where it's used

- Inside [`CapsuleProcessCommand`](https://docs.maitento.com/reference/types/capsule-process-command.md)
