Skip to main content

set_desired

Function set_desired 

Source
pub(crate) fn set_desired(mstore: &Store, block_id: &str, desired: &str)
Expand description

Record the agent’s desired state on its block. Best effort: a failed write costs a restart’s resume, not the start or stop itself. A stopped is logged with the caller that decided it: an agent that comes back from a restart stopped has to be traceable to the code that stopped it.