Expand description
DAG executor — topological sort + per-layer runner.
Phase 1 is sequential per layer (one block at a time). Phase 2
parallelizes independent branches with tokio::spawn.
Structs§
Enums§
- RunEvent
- Streaming events emitted to the frontend during a run.
Functions§
- block_
kind_ 🔒of - edge_
is_ 🔒active - True iff the given edge carries control + data flow under the
current scope. See
should_skipfor the full ruleset. - execute 🔒
- mark_
state 🔒 - now_ms 🔒
- run_
drone - Run the drone end-to-end. Returns a handle whose
eventschannel surfaces per-block lifecycle, and afinal_statesmutex callers can snapshot for the run-history record. - should_
skip 🔒 - Decide whether
node_idshould be pruned given the per-run state. - topological_
layers - Returns the layered topological order of the graph. Each layer is the set of blocks whose dependencies are already satisfied — independent branches run together.