Skip to main content

remove_jobs_by_agent

Function remove_jobs_by_agent 

pub fn remove_jobs_by_agent(
    config: &Config,
    agent_alias: &str,
) -> Result<usize, Error>
Expand description

Delete every cron job owned by agent_alias and its run history, returning the job row count. A job whose owning agent is gone can never run, so the agent deletion removes it.