Exit codes shared by every mix juggernaut* task (see the
agent output guide).
| Code | Meaning |
|---|---|
| 0 | Gate passed, or a read-only task succeeded. |
| 1 | Gate failed or incomplete. |
| 2 | Usage or configuration error. Nothing was scored. |
| 3 | Infrastructure or harness error. Never a verdict. |
When several apply the precedence is 2, then 3, then 1, then 0.
Summary
Functions
Combines several exit codes by precedence (2, then 3, then 1, then 0).
Ends a Mix task with code: returns :ok for 0, otherwise exits with
{:shutdown, code}, which Mix turns into the process exit status.
The exit code for an outcome: :ok, :gate_failed or a Juggernaut.Error.
Types
Functions
Combines several exit codes by precedence (2, then 3, then 1, then 0).
Ends a Mix task with code: returns :ok for 0, otherwise exits with
{:shutdown, code}, which Mix turns into the process exit status.
@spec of(:ok | :gate_failed | Juggernaut.Error.t()) :: t()
The exit code for an outcome: :ok, :gate_failed or a Juggernaut.Error.