Skip to main content

run_once

Function run_once 

Source
async fn run_once<F>(
    services: &Services,
    marker: &'static str,
    pass: F,
) -> Result
where F: AsyncFnOnce(&Services) -> Result,
Expand description

Runs a pass that finishes whenever it succeeds, stamping its marker.

A pass that fails leaves the marker unstamped, so the next boot runs it again.