Skip to main content

agent_service/manager/
cancel_run_outcome.rs

1//! Results describing a run cancellation request.
2
3/// Result of requesting cancellation for a run.
4#[derive(Debug, Clone, Copy, PartialEq, Eq)]
5pub enum CancelRunOutcome {
6    /// Cancellation was signalled to a running execution.
7    Requested,
8    /// The queued run was cancelled before a worker started it.
9    CancelledBeforeStart,
10    /// A cancellation request had already been sent.
11    AlreadyRequested,
12    /// The run had already reached a terminal state.
13    AlreadyFinished,
14}