Skip to main content

resolve_exit_reason

Function resolve_exit_reason 

Source
pub fn resolve_exit_reason(
    exit_code: Option<i32>,
    log_tail: Option<&str>,
    oom_killed: Option<bool>,
    oom_kills: Option<u64>,
) -> Option<String>
Expand description

Resolve the best available hint for why an execution ended.

Precedence: the log marker (evidence written by the command itself), then the cgroup OOM observation when the exit fits an OOM kill of the command (issue #180), then the signal encoded in the exit code.