Skip to main content

cancel_run

Function cancel_run 

Source
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::RunAlreadyTerminal if the run is Done/Failed — refused without mutating state.
  • I/O / corrupt-log errors from reading the manifest, listing nodes, or appending events.