pub struct WorkflowExecConfig {
pub poll_interval: Duration,
pub step_timeout: Duration,
pub fail_fast: bool,
pub dry_run: bool,
pub shutdown: Option<Arc<AtomicBool>>,
pub event_sinks: Vec<Arc<dyn EventSink>>,
pub lease_ttl_secs: i64,
pub lease_refresh_interval: Duration,
}Expand description
Configuration for workflow execution.
Fields§
§poll_interval: Duration§step_timeout: Duration§fail_fast: bool§dry_run: bool§shutdown: Option<Arc<AtomicBool>>§event_sinks: Vec<Arc<dyn EventSink>>Event sinks that receive observability events after each state transition.
Defaults to empty (no sinks). Use ..WorkflowExecConfig::default() spread
syntax to leave this unset when you don’t need events.
lease_ttl_secs: i64Lease TTL passed to acquire_lease. Defaults to 30s (LEASE_TTL_SECONDS).
Override in tests to use a shorter TTL.
lease_refresh_interval: DurationHow often the background refresh thread renews the lease. Defaults to 10s. Override in tests to exercise refresh behaviour without long waits.
Trait Implementations§
Source§impl Clone for WorkflowExecConfig
impl Clone for WorkflowExecConfig
Source§fn clone(&self) -> WorkflowExecConfig
fn clone(&self) -> WorkflowExecConfig
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 WorkflowExecConfig
impl Debug for WorkflowExecConfig
Auto Trait Implementations§
impl Freeze for WorkflowExecConfig
impl !RefUnwindSafe for WorkflowExecConfig
impl Send for WorkflowExecConfig
impl Sync for WorkflowExecConfig
impl Unpin for WorkflowExecConfig
impl UnsafeUnpin for WorkflowExecConfig
impl !UnwindSafe for WorkflowExecConfig
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