Skip to main content

Module executor

Module executor 

Source

Re-exports§

pub use engine::replay_drone;
pub use engine::resume_drone;
pub use engine::run_drone;

Modules§

blocks
effect
What a block does to the world, which decides what a restart may do with one that was running when the machine stopped (docs/specs/SPEC_DRONE_GENERAL_AUTOMATION_2026_11_11.md §3.3, “the step that was in flight”).
engine
A run’s handle, its event stream and the way to stop it. The scheduler that runs the graph is scheduler.rs.
retry 🔒
Running a block again when it failed for a reason that is the world’s, not its own (docs/specs/SPEC_DRONE_GENERAL_AUTOMATION_2026_11_11.md §3.4).
schedule
What the step scheduler needs to know about a graph, and the rules a graph with a loop must meet (docs/specs/SPEC_DRONE_GENERAL_AUTOMATION_2026_11_11.md §3.1). Pure: nothing here runs a block.
scheduler 🔒
The step scheduler: runs a graph one block at a time, in the order its edges allow, and takes a loop round again when its guard says so (docs/specs/SPEC_DRONE_GENERAL_AUTOMATION_2026_11_11.md §3.1).
writers 🔒
The rule for blocks that can run at the same time and write the same variable (docs/specs/SPEC_DRONE_GENERAL_AUTOMATION_2026_11_11.md §3.2): two blocks that can run at the same time may both write a variable only if its reducer is not replace, so there is no silent race. The graph is refused at start, naming both blocks and the variable.

Enums§

RunEvent
Streaming events emitted to the frontend during a run.

Functions§

cancel_run
Stop the run run_id for reason (a Drone run, not a ledger row). The block in flight ends, an Agent block’s process with it, and the run ends cancelled. false when no such run is going.