Skip to main content

run_forced

Function run_forced 

Source
pub fn run_forced(
    config: &Config,
    previous: Option<&Path>,
    output: &Path,
    source: &impl Source,
) -> Result<SyncResult>
Expand description

Explicitly discard a managed run’s progress and mirror, then resolve a fresh cohort at the same path. No backup is kept; previous must not overlap.

Validates managed output and holds its lock while removing old progress and mirror files. Fresh resolution may fail after old data is gone. New output behaves like a fresh run. Remote storage and previous inputs are untouched.

§Errors

Refuses unrelated/linked/special paths, previous/output overlap, competing writers, invalid state or any validation/transfer/I/O error from run.