pub struct DagExecutorBuilder { /* private fields */ }Expand description
Fluent builder for DagExecutor.
Implementations§
Source§impl DagExecutorBuilder
impl DagExecutorBuilder
Sourcepub fn concurrency(self, n: usize) -> Self
pub fn concurrency(self, n: usize) -> Self
Set the maximum number of concurrently executing tasks.
Sourcepub fn storage(self, storage: Arc<dyn Storage>) -> Self
pub fn storage(self, storage: Arc<dyn Storage>) -> Self
Provide a custom storage backend (defaults to FileStorage at the
configured storage_dir, or MemoryStorage when persistence is off).
Sourcepub fn retry(self, retry: RetryPolicy) -> Self
pub fn retry(self, retry: RetryPolicy) -> Self
Set the retry policy applied to every task.
Sourcepub fn circuit_breaker(self, breaker: CircuitBreaker) -> Self
pub fn circuit_breaker(self, breaker: CircuitBreaker) -> Self
Enable a shared circuit breaker guarding task execution.
Sourcepub fn build(self) -> DagExecutor
pub fn build(self) -> DagExecutor
Finalize the executor.
Auto Trait Implementations§
impl !RefUnwindSafe for DagExecutorBuilder
impl !UnwindSafe for DagExecutorBuilder
impl Freeze for DagExecutorBuilder
impl Send for DagExecutorBuilder
impl Sync for DagExecutorBuilder
impl Unpin for DagExecutorBuilder
impl UnsafeUnpin for DagExecutorBuilder
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