RestartCause Type
Why the supervisor is restarting an incarnation — the `SupervisorRestartEvent.Cause` a live `OnRestart` handler can branch on to tell an ordinary exit/crash restart apart from one the liveness probe forced.
Union cases
| Union case |
Description
|
Full Usage:
Exit
|
The incarnation ended on its own — a completed run the `RestartPolicy` chose to restart (a crash, a timeout, or a retried transient runner error). The default cause for every restart when no liveness probe is configured. |
Full Usage:
Liveness
|
A configured liveness probe (`Supervisor.LivenessHttp`/`LivenessCheck`/`LivenessMemory`) found the *live* child unhealthy for the configured number of consecutive attempts, so the supervisor gracefully stopped it and restarted it through the ordinary policy/backoff path. |
Instance members
| Instance member |
Description
|
Full Usage:
this.IsExit
Returns: bool
|
|
Full Usage:
this.IsLiveness
Returns: bool
|
|
ProcessKit API Reference