pub enum WorkflowRunStatus {
Pending,
Running,
Completed,
Failed,
Cancelled,
Waiting,
NeedsResume,
Cancelling,
}Expand description
Status of a workflow run.
Variants§
Pending
Running
Completed
Failed
Cancelled
Waiting
NeedsResume
Transient staging state: the classifier has determined this run is
eligible for automatic resume. The watchdog picks it up on the next
tick, CAS-flips it back to failed, and spawns a resume thread.
Neither active nor terminal — consumed within one background tick.
Cancelling
Transient state: a cancel signal has been sent; the engine is cleaning up.
Neither active nor terminal — the engine transitions to Cancelled once cleanup completes.
Implementations§
Source§impl WorkflowRunStatus
impl WorkflowRunStatus
Sourcepub const ACTIVE: [WorkflowRunStatus; 3]
pub const ACTIVE: [WorkflowRunStatus; 3]
Canonical set of statuses that constitute an “active” run.
Sourcepub fn active_strings() -> &'static [&'static str]
pub fn active_strings() -> &'static [&'static str]
Returns the SQL string representations of all active statuses.
Sourcepub fn is_terminal(&self) -> bool
pub fn is_terminal(&self) -> bool
Whether this status is terminal (no further transitions expected).
Trait Implementations§
Source§impl Clone for WorkflowRunStatus
impl Clone for WorkflowRunStatus
Source§fn clone(&self) -> WorkflowRunStatus
fn clone(&self) -> WorkflowRunStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WorkflowRunStatus
impl Debug for WorkflowRunStatus
Source§impl<'de> Deserialize<'de> for WorkflowRunStatus
impl<'de> Deserialize<'de> for WorkflowRunStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for WorkflowRunStatus
impl Display for WorkflowRunStatus
Source§impl FromStr for WorkflowRunStatus
impl FromStr for WorkflowRunStatus
Source§impl PartialEq for WorkflowRunStatus
impl PartialEq for WorkflowRunStatus
Source§fn eq(&self, other: &WorkflowRunStatus) -> bool
fn eq(&self, other: &WorkflowRunStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for WorkflowRunStatus
impl Serialize for WorkflowRunStatus
impl Eq for WorkflowRunStatus
impl StructuralPartialEq for WorkflowRunStatus
Auto Trait Implementations§
impl Freeze for WorkflowRunStatus
impl RefUnwindSafe for WorkflowRunStatus
impl Send for WorkflowRunStatus
impl Sync for WorkflowRunStatus
impl Unpin for WorkflowRunStatus
impl UnsafeUnpin for WorkflowRunStatus
impl UnwindSafe for WorkflowRunStatus
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more