Skip to main content

verdict

Function verdict 

Source
pub fn verdict(
    run: Option<&JobRun>,
    armed_at_ms: i64,
    now: i64,
    alive: impl Fn(u32, Option<i64>) -> bool,
) -> Verdict
Expand description

Judge a watched run, armed at armed_at_ms. Pure, with the follower check (pid, followed_at_ms) passed in, so the rules are testable.