Skip to main content

attempt_status

Function attempt_status 

Source
pub fn attempt_status(
    termination: Termination,
    stopped: Option<StopReason>,
    success_codes: &[i32],
) -> AttemptStatus
Expand description

The attempt’s status.

A process the agent stopped gets the status of the reason, however it then ended (a task that exits 0 on SIGTERM after a timeout still timed out). Otherwise it succeeded if it exited with one of success_codes ([0], or the codes of a declared outcome enum), and failed for any other exit code or a signal.