{"record":{"id":"e2045f6e4955ea5a","repo":"zeroclaw-labs/zeroclaw","slug":"cron-job-job-id-not-found","errorCode":null,"errorMessage":"Cron job '{job_id}' not found","messagePattern":"Cron job '(.+?)' not found","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"crates/zeroclaw-runtime/src/cron/store.rs","lineNumber":249,"sourceCode":"/// on the returned job is exactly what's stored in the `cron_jobs` column —\n/// for a declarative job that is a stale/default value, not the canonical\n/// one from `config.cron`. Used by [`update_job`] so unrelated patches don't\n/// re-persist a config-resolved snapshot into a column declarative jobs\n/// don't own; every other caller should use [`get_job`] instead.\nfn get_job_raw(config: &Config, job_id: &str) -> Result<CronJob> {\n    let Some(job) = with_read_connection(config, |conn| {\n        let mut stmt = conn.prepare(\n            \"SELECT id, expression, command, schedule, job_type, prompt, name, session_target, model,\n                     enabled, delivery, delete_after_run, created_at, next_run, last_run, last_status, last_output,\n                     allowed_tools, source, uses_memory, agent_alias, shell_output_format\n             FROM cron_jobs WHERE id = ?1\",\n        )?;\n\n        let mut rows = stmt.query(params![job_id])?;\n        if let Some(row) = rows.next()? {\n            map_cron_job_row(row).map_err(Into::into)\n        } else {\n            anyhow::bail!(\"Cron job '{job_id}' not found\")\n        }\n    })?\n    else {\n        anyhow::bail!(\"Cron job '{job_id}' not found\")\n    };\n    Ok(job)\n}\n\npub fn resolve_job_id_or_name(\n    config: &Config,\n    id_or_name: &str,\n    agent_alias: &str,\n) -> Result<String> {\n    // Fast path: try exact ID lookup first.\n    if let Ok(job) = get_job(config, id_or_name) {\n        return Ok(job.id);\n    }\n","sourceCodeStart":231,"sourceCodeEnd":267,"githubUrl":"https://github.com/zeroclaw-labs/zeroclaw/blob/88bb9c8533fc57ed7a03e36ca7c9ed2bf8336dcc/crates/zeroclaw-runtime/src/cron/store.rs#L231-L267","documentation":"Error \"Cron job '{job_id}' not found\" thrown in zeroclaw-labs/zeroclaw.","triggerScenarios":"Thrown at crates/zeroclaw-runtime/src/cron/store.rs:249 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["List cron jobs to find the correct job ID and retry."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"88bb9c8533fc57ed7a03e36ca7c9ed2bf8336dcc","analyzedAt":"2026-08-23T01:07:41.857Z","schemaVersion":2},"datasetVersion":"2026-08-23T08:06:27.607Z"}