{"record":{"id":"b8b46e99b394305d","repo":"NousResearch/hermes-agent","slug":"cannot-resume-one-shot-time-run-at-is-in-the-pa","errorCode":null,"errorMessage":"Cannot resume: one-shot time {run_at} is in the past (grace window: {ONESHOT_GRACE_SECONDS}s) and will never fire.","messagePattern":"Cannot resume: one-shot time (.+?) is in the past \\(grace window: (.+?)s\\) and will never fire\\.","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"cron/jobs.py","lineNumber":2009,"sourceCode":"        {\n            \"enabled\": False,\n            \"state\": \"paused\",\n            \"paused_at\": _hermes_now().isoformat(),\n            \"paused_reason\": reason,\n        },\n    )\n\n\ndef resume_job(job_id: str) -> Optional[Dict[str, Any]]:\n    \"\"\"Resume a paused job and compute the next future run from now. Accepts a job ID or name.\"\"\"\n    job = resolve_job_ref(job_id)\n    if not job:\n        return None\n\n    next_run_at = compute_next_run(job[\"schedule\"])\n    if next_run_at is None and job[\"schedule\"].get(\"kind\") == \"once\":\n        run_at = job[\"schedule\"].get(\"run_at\", \"unknown\")\n        raise ValueError(\n            f\"Cannot resume: one-shot time {run_at} is in the past \"\n            f\"(grace window: {ONESHOT_GRACE_SECONDS}s) and will never fire.\"\n        )\n    return update_job(\n        job[\"id\"],\n        {\n            \"enabled\": True,\n            \"state\": \"scheduled\",\n            \"paused_at\": None,\n            \"paused_reason\": None,\n            \"next_run_at\": next_run_at,\n        },\n    )\n\n\ndef trigger_job(job_id: str) -> Optional[Dict[str, Any]]:\n    \"\"\"Schedule a job to run on the next scheduler tick. Accepts a job ID or name.\"\"\"\n    job = resolve_job_ref(job_id)","sourceCodeStart":1991,"sourceCodeEnd":2027,"githubUrl":"https://github.com/NousResearch/hermes-agent/blob/c896c09c42910c584c4c7d2325b58c14713ea42c/cron/jobs.py#L1991-L2027","documentation":"Error \"Cannot resume: one-shot time {run_at} is in the past (grace window: {ONESHOT_GRACE_SECONDS}s) and will never fire.\" thrown in NousResearch/hermes-agent.","triggerScenarios":"Thrown at cron/jobs.py:2009 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Edit the job to a future run time before resuming, or create a new job."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"c896c09c42910c584c4c7d2325b58c14713ea42c","analyzedAt":"2026-08-14T17:18:01.089Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}