pub struct Executor;Expand description
Single-threaded task graph executor.
Executes an ExecutionPlan wave by wave, propagating outputs from
completed tasks to downstream consumers via DataRef name matching.
Failed tasks are retried up to TaskDef::retries times; if retries
are exhausted, all transitive downstream tasks are marked
TaskStatus::Skipped.
Implementations§
Source§impl Executor
impl Executor
Sourcepub fn run(plan: ExecutionPlan) -> Result<ExecutionResult, FabricError>
pub fn run(plan: ExecutionPlan) -> Result<ExecutionResult, FabricError>
Execute the plan, consuming it.
Tasks are executed sequentially within each wave. Outputs from
completed tasks are stored and made available as inputs to downstream
tasks matched by DataRef::name.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Executor
impl RefUnwindSafe for Executor
impl Send for Executor
impl Sync for Executor
impl Unpin for Executor
impl UnwindSafe for Executor
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