pub struct BatchPlan {
pub batches: Vec<ExecutionBatch>,
pub total_nodes: usize,
pub max_parallelism: usize,
pub speedup_factor: f64,
pub stats: BatchStats,
}Expand description
Batch execution plan for a workflow
Fields§
§batches: Vec<ExecutionBatch>Execution batches in topological order
total_nodes: usizeTotal number of nodes
max_parallelism: usizeMaximum parallelism (largest batch size)
speedup_factor: f64Estimated speedup factor
stats: BatchStatsBatch statistics
Implementations§
Source§impl BatchPlan
impl BatchPlan
Sourcepub fn format_summary(&self) -> String
pub fn format_summary(&self) -> String
Format batch plan as human-readable string
Sourcepub fn critical_path(&self) -> Vec<&ExecutionBatch>
pub fn critical_path(&self) -> Vec<&ExecutionBatch>
Get the critical path (longest batch sequence)
Sourcepub fn parallel_batches(&self) -> Vec<&ExecutionBatch>
pub fn parallel_batches(&self) -> Vec<&ExecutionBatch>
Get all parallel batches
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BatchPlan
impl<'de> Deserialize<'de> for BatchPlan
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BatchPlan
impl RefUnwindSafe for BatchPlan
impl Send for BatchPlan
impl Sync for BatchPlan
impl Unpin for BatchPlan
impl UnwindSafe for BatchPlan
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