Skip to main content

NodeExecutorRegistry

Trait NodeExecutorRegistry 

Source
pub trait NodeExecutorRegistry: Sync {
    type Executor: NodeExecutor + ?Sized;

    // Required method
    fn executor_for(&self, node_id: &NodeId) -> Result<&Self::Executor>;
}
Expand description

Registry that resolves workflow nodes to runtime executors.

The registry owns node-to-executor selection while the workflow runner owns graph wiring, cancellation, lifecycle, and metadata behavior.

Required Associated Types§

Source

type Executor: NodeExecutor + ?Sized

Concrete executor type returned for nodes in this registry.

Required Methods§

Source

fn executor_for(&self, node_id: &NodeId) -> Result<&Self::Executor>

Resolve an executor for one workflow node.

§Errors

Returns an error when no executor is registered for the node.

Implementors§