Skip to main content

Module m0050_drone_checkpoints

Module m0050_drone_checkpoints 

Source
Expand description

The table behind a run’s checkpoints (docs/specs/SPEC_DRONE_GENERAL_AUTOMATION_2026_11_11.md §3.3).

After every block the engine writes a checkpoint of the run: step 0 whole, each later one as the diff from the one before (drone::checkpoint). They are kept beside the run row in this version’s store (db_drone_runs is in the channel store, so a run and its checkpoints are never in two files), keyed by (run_id, step). There is no foreign key to db_drone_runs: the run’s row is written after its first checkpoint, and a delete of the run clears its checkpoints in the same handler, as it does for the drone’s runs (m0038).

IF NOT EXISTS, so a second run changes nothing, and a channel store that does not exist yet is left to create the table with the rest of its schema.

Structs§

M0050DroneCheckpoints