Skip to main content

give_up

Function give_up 

Source
pub fn give_up(
    store: &CloudStore,
    instance_id: &str,
    ids: &[String],
    force: bool,
) -> Result<Vec<String>, CloudError>
Expand description

give_up_in on the book of instance_id, for an explicit retirement (lean-ctx cloud worker retire <wkr_…>). Refused when an active local session holds one of ids (Cloud would delete a worker that keeps posting), or when the agent registry cannot be read to tell; force skips that check.