pub enum WorkflowWatchdogPolicy {
Disabled,
Deadlock(DeadlockWatchdogPolicy),
}Expand description
Runtime watchdog behavior for workflow execution.
Variants§
Disabled
Do not monitor no-progress workflow execution.
Deadlock(DeadlockWatchdogPolicy)
Cancel the workflow if no scheduled node reaches a terminal state before the configured deadline. The deadline resets after each node result.
Implementations§
Source§impl WorkflowWatchdogPolicy
impl WorkflowWatchdogPolicy
Sourcepub const fn deadlock_after(no_progress_timeout: Duration) -> Self
pub const fn deadlock_after(no_progress_timeout: Duration) -> Self
Cancel the workflow after a no-progress interval.
A zero duration is allowed and fires on the next watchdog poll, which is useful for deterministic tests.
Trait Implementations§
Source§impl Clone for WorkflowWatchdogPolicy
impl Clone for WorkflowWatchdogPolicy
Source§fn clone(&self) -> WorkflowWatchdogPolicy
fn clone(&self) -> WorkflowWatchdogPolicy
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 WorkflowWatchdogPolicy
impl Debug for WorkflowWatchdogPolicy
Source§impl Default for WorkflowWatchdogPolicy
impl Default for WorkflowWatchdogPolicy
Source§fn default() -> WorkflowWatchdogPolicy
fn default() -> WorkflowWatchdogPolicy
Returns the “default value” for a type. Read more
Source§impl PartialEq for WorkflowWatchdogPolicy
impl PartialEq for WorkflowWatchdogPolicy
Source§fn eq(&self, other: &WorkflowWatchdogPolicy) -> bool
fn eq(&self, other: &WorkflowWatchdogPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for WorkflowWatchdogPolicy
impl Eq for WorkflowWatchdogPolicy
impl StructuralPartialEq for WorkflowWatchdogPolicy
Auto Trait Implementations§
impl Freeze for WorkflowWatchdogPolicy
impl RefUnwindSafe for WorkflowWatchdogPolicy
impl Send for WorkflowWatchdogPolicy
impl Sync for WorkflowWatchdogPolicy
impl Unpin for WorkflowWatchdogPolicy
impl UnsafeUnpin for WorkflowWatchdogPolicy
impl UnwindSafe for WorkflowWatchdogPolicy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).