Skip to main content

TaskGraphRepository

Trait TaskGraphRepository 

Source
pub trait TaskGraphRepository {
    // Required methods
    fn insert_task_graph_run(&self, run: &NewTaskGraphRun) -> Result<()>;
    fn update_task_graph_run_status(
        &self,
        graph_run_id: &str,
        status: &str,
    ) -> Result<()>;
    fn insert_task_graph_snapshot(
        &self,
        snapshot: &NewTaskGraphSnapshot,
    ) -> Result<()>;
    fn load_task_graph_debug_bundles(
        &self,
        task_id: &str,
    ) -> Result<Vec<TaskGraphDebugBundle>>;
}
Expand description

Task graph planning records.

Required Methods§

Source

fn insert_task_graph_run(&self, run: &NewTaskGraphRun) -> Result<()>

Inserts a new task-graph planning run record.

Source

fn update_task_graph_run_status( &self, graph_run_id: &str, status: &str, ) -> Result<()>

Updates the status of an existing task-graph run.

Source

fn insert_task_graph_snapshot( &self, snapshot: &NewTaskGraphSnapshot, ) -> Result<()>

Persists one task-graph snapshot.

Source

fn load_task_graph_debug_bundles( &self, task_id: &str, ) -> Result<Vec<TaskGraphDebugBundle>>

Loads debug bundles for graph-planning diagnostics.

Implementors§