Skip to main content

Module drone_cancel

Module drone_cancel 

Source
Expand description

How a Drone run is stopped. It lives in the core so the run ledger (backend/jobs: a job’s timeout, cancel_other, a stop from the Jobs tab) can stop the run without reaching up into drone/; the executor re-exports it.

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.

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.
forget_run
A run has ended.
register_run
A run has started: cancel_run can stop it until forget_run.