pub fn cancel_run(paths: &RunPaths, note: Option<&str>) -> Result<CancelOutcome>Expand description
Cancel a run in a single locked transaction. Acquires the run’s
RunLock once for the whole operation, then delegates to
cancel_run_unlocked.
§Errors
Error::RunAlreadyTerminalif the run isDone/Failed— refused without mutating state.- I/O / corrupt-log errors from reading the manifest, listing nodes, or appending events.