pub struct WorkflowExecutor;Expand description
Workflow execution implementation
Implementations§
Source§impl WorkflowExecutor
impl WorkflowExecutor
Sourcepub fn validate_workflow(workflow: &DistributedWorkflow) -> CoreResult<()>
pub fn validate_workflow(workflow: &DistributedWorkflow) -> CoreResult<()>
Validate a workflow before execution
Sourcepub fn create_workflow_execution_plan(
workflow: &DistributedWorkflow,
) -> CoreResult<WorkflowExecutionPlan>
pub fn create_workflow_execution_plan( workflow: &DistributedWorkflow, ) -> CoreResult<WorkflowExecutionPlan>
Create a workflow execution plan
Sourcepub fn setup_workflow_communication(
plan: &WorkflowExecutionPlan,
) -> CoreResult<Vec<String>>
pub fn setup_workflow_communication( plan: &WorkflowExecutionPlan, ) -> CoreResult<Vec<String>>
Setup workflow communication channels
Sourcepub fn execute_workflow_stage(
stage: &WorkflowStage,
_channels: &[String],
) -> CoreResult<StageResult>
pub fn execute_workflow_stage( stage: &WorkflowStage, _channels: &[String], ) -> CoreResult<StageResult>
Execute workflow stage
Sourcepub fn aggregate_workflow_results(
stage_results: &[StageResult],
_state: &WorkflowState,
) -> CoreResult<WorkflowResult>
pub fn aggregate_workflow_results( stage_results: &[StageResult], _state: &WorkflowState, ) -> CoreResult<WorkflowResult>
Aggregate workflow results
Sourcepub fn execute_distributed_workflow(
workflow: DistributedWorkflow,
) -> CoreResult<WorkflowResult>
pub fn execute_distributed_workflow( workflow: DistributedWorkflow, ) -> CoreResult<WorkflowResult>
Execute a distributed workflow
Auto Trait Implementations§
impl Freeze for WorkflowExecutor
impl RefUnwindSafe for WorkflowExecutor
impl Send for WorkflowExecutor
impl Sync for WorkflowExecutor
impl Unpin for WorkflowExecutor
impl UnwindSafe for WorkflowExecutor
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more