Skip to main content

run_workflow_with_registry

Function run_workflow_with_registry 

Source
pub async fn run_workflow_with_registry<R>(
    workflow: &WorkflowDefinition,
    execution: &ExecutionMetadata,
    registry: &R,
) -> Result<()>
Expand description

Execute the workflow by resolving one executor for each node from a registry.

ยงErrors

Returns an error if the default run policy rejects the workflow shape, executor resolution fails, or any node execution fails.