pub struct WorkflowEngine;Expand description
Executes workflows by resolving the DAG and running steps.
Independent steps are executed in parallel using tokio tasks.
Implementations§
Source§impl WorkflowEngine
impl WorkflowEngine
Sourcepub async fn run(
&self,
workflow: Workflow,
) -> Result<WorkflowContext, WorkflowError>
pub async fn run( &self, workflow: Workflow, ) -> Result<WorkflowContext, WorkflowError>
Runs a workflow to completion.
Steps are executed in parallel groups determined by the DAG. If any step fails, dependent steps are skipped and the error is returned.
Sourcepub async fn run_with_checkpoint(
&self,
workflow: Workflow,
checkpoint_path: &Path,
) -> Result<WorkflowContext, WorkflowError>
pub async fn run_with_checkpoint( &self, workflow: Workflow, checkpoint_path: &Path, ) -> Result<WorkflowContext, WorkflowError>
Runs a workflow with checkpointing after each group completes.
If a checkpoint file already exists at the path, completed steps are skipped.
Trait Implementations§
Source§impl Clone for WorkflowEngine
impl Clone for WorkflowEngine
Source§fn clone(&self) -> WorkflowEngine
fn clone(&self) -> WorkflowEngine
Returns a duplicate of the value. Read more
1.0.0 · 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 WorkflowEngine
impl Debug for WorkflowEngine
Source§impl Default for WorkflowEngine
impl Default for WorkflowEngine
Source§fn default() -> WorkflowEngine
fn default() -> WorkflowEngine
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WorkflowEngine
impl RefUnwindSafe for WorkflowEngine
impl Send for WorkflowEngine
impl Sync for WorkflowEngine
impl Unpin for WorkflowEngine
impl UnsafeUnpin for WorkflowEngine
impl UnwindSafe for WorkflowEngine
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