Logo ProcessKit API Reference

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

Exit

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.

Liveness

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

this.IsExit

Full Usage: this.IsExit

Returns: bool
Returns: bool

this.IsLiveness

Full Usage: this.IsLiveness

Returns: bool
Returns: bool

Type something to start searching.