Skip to main content

clear_runner_root_refusal

Function clear_runner_root_refusal 

Source
pub fn clear_runner_root_refusal(
    paths: &AppPaths,
    policy: &str,
) -> Result<(), ServiceError>
Expand description

Clears one policy’s entry, because that policy placed a runner.

Removes the file once the last entry goes, so a host that is working leaves nothing behind for a later service status to report. A policy with no entry is not an error: this is called on every successful placement, and almost every one of those follows another success.

§Errors

ServiceError::Record when state/ cannot be read or written.