pub struct ParallelScheduler { /* private fields */ }Implementations§
Source§impl ParallelScheduler
impl ParallelScheduler
pub fn new(max_workers: usize) -> Result<ParallelScheduler, DagMlError>
pub fn max_workers(&self) -> usize
Source§impl ParallelScheduler
impl ParallelScheduler
pub fn execute_phase( &self, plan: &ExecutionPlan, controllers: &RuntimeControllerRegistry, ctx: &mut RunContext, phase: Phase, ) -> Result<Vec<NodeResult>, DagMlError>
pub fn execute_phase_with_data_provider( &self, plan: &ExecutionPlan, controllers: &RuntimeControllerRegistry, data_provider: &dyn RuntimeDataProvider, ctx: &mut RunContext, phase: Phase, ) -> Result<Vec<NodeResult>, DagMlError>
pub fn execute_campaign_phase( &self, plan: &ExecutionPlan, controllers: &RuntimeControllerRegistry, ctx: &mut RunContext, phase: Phase, ) -> Result<Vec<NodeResult>, DagMlError>
pub fn execute_campaign_phase_with_data_provider( &self, plan: &ExecutionPlan, controllers: &RuntimeControllerRegistry, data_provider: &dyn RuntimeDataProvider, ctx: &mut RunContext, phase: Phase, ) -> Result<Vec<NodeResult>, DagMlError>
pub fn execute_campaign_phase_with_data_provider_and_artifact_store( &self, plan: &ExecutionPlan, controllers: &RuntimeControllerRegistry, data_provider: &dyn RuntimeDataProvider, artifact_store: &mut InMemoryArtifactStore, ctx: &mut RunContext, phase: Phase, ) -> Result<Vec<NodeResult>, DagMlError>
pub fn execute_bundle_replay( &self, replay: BundleReplayExecution<'_>, ctx: &mut RunContext, ) -> Result<Vec<NodeResult>, DagMlError>
Trait Implementations§
Source§impl Clone for ParallelScheduler
impl Clone for ParallelScheduler
Source§fn clone(&self) -> ParallelScheduler
fn clone(&self) -> ParallelScheduler
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ParallelScheduler
impl RefUnwindSafe for ParallelScheduler
impl Send for ParallelScheduler
impl Sync for ParallelScheduler
impl Unpin for ParallelScheduler
impl UnsafeUnpin for ParallelScheduler
impl UnwindSafe for ParallelScheduler
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