pub struct DagExecutor { /* private fields */ }Expand description
DAG executor for managing task dependencies
Implementations§
Source§impl DagExecutor
impl DagExecutor
Sourcepub fn new() -> DagExecutor
pub fn new() -> DagExecutor
Create a new DAG executor
Sourcepub fn validate(&self) -> Result<(), PolarisError>
pub fn validate(&self) -> Result<(), PolarisError>
Validate the DAG for cycles
Sourcepub fn get_ready_tasks(&self) -> Vec<TaskId>
pub fn get_ready_tasks(&self) -> Vec<TaskId>
Get tasks ready to execute (no pending dependencies)
Sourcepub fn topological_sort(&self) -> Result<Vec<TaskId>, PolarisError>
pub fn topological_sort(&self) -> Result<Vec<TaskId>, PolarisError>
Get topological ordering of tasks
Sourcepub fn update_task_status(&mut self, task_id: TaskId, status: TaskStatus)
pub fn update_task_status(&mut self, task_id: TaskId, status: TaskStatus)
Update task status
Trait Implementations§
Source§impl Debug for DagExecutor
impl Debug for DagExecutor
Source§impl Default for DagExecutor
impl Default for DagExecutor
Source§fn default() -> DagExecutor
fn default() -> DagExecutor
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DagExecutor
impl RefUnwindSafe for DagExecutor
impl Send for DagExecutor
impl Sync for DagExecutor
impl Unpin for DagExecutor
impl UnwindSafe for DagExecutor
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