pub struct WorkflowBuilder { /* private fields */ }Expand description
Workflow builder for ergonomic workflow construction.
Implementations§
Source§impl WorkflowBuilder
impl WorkflowBuilder
Sourcepub fn description(self, description: impl Into<String>) -> Self
pub fn description(self, description: impl Into<String>) -> Self
Set workflow description.
Sourcepub fn config(self, config: WorkflowConfig) -> Self
pub fn config(self, config: WorkflowConfig) -> Self
Set workflow configuration.
Sourcepub fn max_concurrent_tasks(self, max: usize) -> Self
pub fn max_concurrent_tasks(self, max: usize) -> Self
Set maximum concurrent tasks.
Sourcepub fn global_timeout(self, timeout: Duration) -> Self
pub fn global_timeout(self, timeout: Duration) -> Self
Set global timeout.
Sourcepub fn continue_on_error(self, enabled: bool) -> Self
pub fn continue_on_error(self, enabled: bool) -> Self
Enable continue-on-error mode.
Sourcepub fn task(self, name: impl Into<String>, task: Task) -> Self
pub fn task(self, name: impl Into<String>, task: Task) -> Self
Add a task with a named reference.
Sourcepub fn add_task(self, builder: TaskBuilder) -> Self
pub fn add_task(self, builder: TaskBuilder) -> Self
Add a task with TaskBuilder.
Sourcepub fn depends_on(
self,
task: impl AsRef<str>,
dependency: impl AsRef<str>,
) -> Result<Self>
pub fn depends_on( self, task: impl AsRef<str>, dependency: impl AsRef<str>, ) -> Result<Self>
Add a dependency between named tasks.
Auto Trait Implementations§
impl Freeze for WorkflowBuilder
impl RefUnwindSafe for WorkflowBuilder
impl Send for WorkflowBuilder
impl Sync for WorkflowBuilder
impl Unpin for WorkflowBuilder
impl UnsafeUnpin for WorkflowBuilder
impl UnwindSafe for WorkflowBuilder
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