Skip to main content

get_job_for_agent

Function get_job_for_agent 

pub fn get_job_for_agent(
    config: &Config,
    job_id: &str,
    agent_alias: &str,
) -> Result<CronJob>
Expand description

A job the calling agent owns. Anyone else’s is reported as missing rather than refused, so the error cannot confirm that it exists. Rows predating the agent_alias column belong to no agent and are reachable only from the unscoped operator surfaces.