Skip to main content

sweep_interrupted

Function sweep_interrupted 

Source
pub(crate) fn sweep_interrupted(
    state: &AppState,
    now_ms: i64,
    older_than_ms: i64,
) -> usize
Expand description

End the dreams left running by a srv that quit, or by a loop that died, mid-pass: nothing else moves them, and a running dream blocks every later pass and its agent’s next dream. A dream running for older_than_ms or more is moved to failed; 0 at startup takes them all, since no pass of this srv has begun. Returns how many it ended.