Expand description
A run’s handle, its event stream and the way to stop it. The scheduler that
runs the graph is scheduler.rs.
Structs§
- Cancel
- How a run is stopped: a flag the scheduler looks at before each block and that ends the block in flight, with the reason it was set for.
- RunHandle
Enums§
- RunEnd 🔒
- How the scheduler ended a run that did not finish.
- RunEvent
- Streaming events emitted to the frontend during a run.
Functions§
- cancel_
run - Stop the run
run_idforreason(a Drone run, not a ledger row). The block in flight ends, an Agent block’s process with it, and the run endscancelled.falsewhen no such run is going. - end_
event 🔒 - The event that closes a run’s stream, from how it ended.
- mark_
state 🔒 - replay_
drone - Start the run that replays an earlier one:
firstis its first checkpoint (replay::fork_checkpoint), ongraph, the graph the earlier run was on. It is a run of its own, with its own id and checkpoints; the blocks that were finished at the step it starts from are not run again, and a block with effects says what it said before instead of doing it again unlessreplay.fork.real. - resume_
drone - Take a run up again after AgentMux restarted: from
checkpoint, its newest, ongraph, the graph the checkpoint was written on. The blocks that were done are not run again, and what they said is what the rest reads. The run goes on under the same id, keeps writing checkpoints throughpersist, and ends as any run does.checkpoint.run_idnames it. - 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.triggeris what started the run ({{trigger.*}});Nullwhen nothing did.run_cap_usdends the run before its next block once its Agent blocks have spent that much (a job’s per-run cap);Noneis no cap, as for a run started by hand.persistsays where to keep the run’s checkpoints;Nonekeeps none.