Skip to main content

recovery_pass

Function recovery_pass 

pub async fn recovery_pass(
    store: &dyn TaskRegistry,
    boot_id: &str,
) -> Result<usize>
Expand description

One-shot crash-recovery sweep: reclaim every Running record left behind by a PRIOR boot. Safe to run at every startup — same-boot records are not yet present (this runs before the reaper spawns) and the authority guard protects any that are. Returns the number of records reclaimed.