pub enum WorkflowStatus {
Created,
Running,
Waiting,
Completed,
Compensating,
Compensated,
Failed,
BlockedMissingVersion,
BlockedSignatureMismatch,
BlockedMissingHandler,
RetiredUnresumable,
CancelledByOperator,
}Expand description
Workflow execution status.
Variants§
Created
Workflow is created but not started.
Running
Workflow is actively running.
Waiting
Workflow is waiting for an external event or timer.
Completed
Workflow completed successfully.
Compensating
Workflow failed and is running compensation.
Compensated
Workflow compensation completed.
Failed
Workflow failed (compensation also failed or not available).
BlockedMissingVersion
Blocked: the workflow version is not present in the current binary.
BlockedSignatureMismatch
Blocked: the workflow version exists but its signature does not match.
BlockedMissingHandler
Blocked: no handler registered for this workflow name at all.
RetiredUnresumable
Explicitly retired by an operator. Terminal, preserves audit trail.
CancelledByOperator
Explicitly cancelled by an operator. Terminal, preserves audit trail.
Implementations§
Source§impl WorkflowStatus
impl WorkflowStatus
Sourcepub fn is_terminal(&self) -> bool
pub fn is_terminal(&self) -> bool
Check if the workflow is terminal (no longer running).
Sourcepub fn is_blocked(&self) -> bool
pub fn is_blocked(&self) -> bool
Check if the workflow is blocked and cannot make progress.
Trait Implementations§
Source§impl Clone for WorkflowStatus
impl Clone for WorkflowStatus
Source§fn clone(&self) -> WorkflowStatus
fn clone(&self) -> WorkflowStatus
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for WorkflowStatus
impl Debug for WorkflowStatus
Source§impl FromStr for WorkflowStatus
impl FromStr for WorkflowStatus
Source§impl PartialEq for WorkflowStatus
impl PartialEq for WorkflowStatus
impl Copy for WorkflowStatus
impl Eq for WorkflowStatus
impl StructuralPartialEq for WorkflowStatus
Auto Trait Implementations§
impl Freeze for WorkflowStatus
impl RefUnwindSafe for WorkflowStatus
impl Send for WorkflowStatus
impl Sync for WorkflowStatus
impl Unpin for WorkflowStatus
impl UnsafeUnpin for WorkflowStatus
impl UnwindSafe for WorkflowStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more