Skip to main content

classify_restore

Function classify_restore 

Source
pub fn classify_restore(
    status: &RunStatus,
    parked_on_fanout: bool,
) -> Option<RestorePriority>
Expand description

Classify one persisted run for restart recovery from its on-disk status and whether it is parked mid fan-out (a <run_dir>/fanout.json is present).

Returns None for a terminal run (Complete / Error / Cancelled) - those are never resumed. A run parked on a fan-out is Blocked regardless of its status: it can’t progress until its children finish.