Skip to main content

srv_exit_action

Function srv_exit_action 

Source
pub(super) fn srv_exit_action(
    status: Result<ExitStatus>,
    srv_restarts: &mut Vec<Instant>,
    srv_oom_restarts: &mut Vec<Instant>,
) -> SrvAction
Expand description

Decide what to do about srv’s exit: classify it, charge the budgets, log it, and record and show the give-up when the budget is spent. The three places that see srv exit call this.