pub enum WorkflowError {
Show 15 variants
DuplicateTaskId(String),
TaskNotFound(String),
TaskNotImplemented(String),
DefinitionMismatch {
expected: String,
found: String,
},
Cancelled {
reason: Option<String>,
cancelled_by: Option<String>,
},
Paused {
reason: Option<String>,
paused_by: Option<String>,
},
EmptyFork,
TaskPanicked(String),
ResumeError(String),
Deserialization(String),
BranchNotFound(String),
Waiting {
wake_at: DateTime<Utc>,
},
TaskTimedOut {
task_id: String,
timeout: Duration,
},
AwaitingSignal {
signal_id: String,
signal_name: String,
wake_at: Option<DateTime<Utc>>,
},
SignalConsumed,
}Expand description
Unified error type for workflow operations.
Variants§
DuplicateTaskId(String)
A duplicate task ID was found during workflow building.
TaskNotFound(String)
A referenced task ID was not found in the registry.
TaskNotImplemented(String)
The task has no implementation (function body).
DefinitionMismatch
The workflow definition hash doesn’t match. This indicates the serialized state was created with a different workflow definition.
Fields
Cancelled
The workflow was cancelled.
Fields
Paused
The workflow was paused.
Fields
EmptyFork
A fork has no branches and no join task.
TaskPanicked(String)
A task panicked during execution.
ResumeError(String)
Cannot resume workflow from saved state.
Deserialization(String)
Deserialization of binary data failed.
BranchNotFound(String)
A named branch was not found in the outputs.
Waiting
The workflow is waiting for a delay to expire.
TaskTimedOut
Task exceeded its configured timeout duration.
This marks the entire workflow as Failed. The task future is actively
dropped (cancelled mid-flight) via tokio::select! in all runners.
AwaitingSignal
The workflow is waiting for an external signal.
Fields
SignalConsumed
A buffered signal was consumed during park — execution should continue.
This is an internal sentinel used by park_at_signal when a signal is
already buffered. The executor should re-enter the loop.
Implementations§
Trait Implementations§
Source§impl Clone for WorkflowError
impl Clone for WorkflowError
Source§fn clone(&self) -> WorkflowError
fn clone(&self) -> WorkflowError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more