pub enum OnError {
FailWorkflow,
SkipStep,
RetryOnce,
Fallback {
step: String,
},
CatchAndContinue {
error_handler: String,
},
CircuitBreaker {
max_failures: usize,
cooldown_secs: u64,
},
}Expand description
What to do when a workflow step fails.
Variants§
FailWorkflow
Abort the entire workflow.
SkipStep
Skip the failed step and continue.
RetryOnce
Retry the step once, then fail if it fails again.
Fallback
On error, run a fallback step instead.
CatchAndContinue
Run an error handler step, then continue the workflow.
CircuitBreaker
Stop trying after N consecutive failures, with a cooldown.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for OnError
impl<'de> Deserialize<'de> for OnError
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
impl StructuralPartialEq for OnError
Auto Trait Implementations§
impl Freeze for OnError
impl RefUnwindSafe for OnError
impl Send for OnError
impl Sync for OnError
impl Unpin for OnError
impl UnsafeUnpin for OnError
impl UnwindSafe for OnError
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