Skip to main content

resume_runs

Function resume_runs 

Source
pub(crate) async fn resume_runs(
    state: &AppState,
    ledger: Option<&Arc<RunLedger>>,
) -> HashSet<String>
Expand description

Take up again every run the old process left running that can be. Returns their ids: the restart leaves those rows open (recover_after_restart_except). Call before the ledger recovers, from the state that has the stores. ledger closes the run’s job row when it ends; none for a state without one.