{"record":{"id":"1e7d2b4bac603caf","repo":"NousResearch/hermes-agent","slug":"requested-one-shot-time-run-at-is-in-the-past-g","errorCode":null,"errorMessage":"Requested one-shot time {run_at} is in the past (grace window: {ONESHOT_GRACE_SECONDS}s) and cannot be scheduled.","messagePattern":"Requested one-shot time (.+?) is in the past \\(grace window: (.+?)s\\) and cannot be scheduled\\.","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"cron/jobs.py","lineNumber":1972,"sourceCode":"                            f\"{ONESHOT_GRACE_SECONDS}s in the past and cannot be scheduled.\"\n                        )\n                    updated[\"next_run_at\"] = updated_next_run\n\n            if inference_fields_changed:\n                provider_snapshot, model_snapshot = _compute_provider_model_snapshots(\n                    provider=updated.get(\"provider\"),\n                    model=updated.get(\"model\"),\n                    base_url=updated.get(\"base_url\"),\n                    no_agent=updated.get(\"no_agent\"),\n                )\n                updated[\"provider_snapshot\"] = provider_snapshot\n                updated[\"model_snapshot\"] = model_snapshot\n\n            if updated.get(\"enabled\", True) and updated.get(\"state\") != \"paused\" and not updated.get(\"next_run_at\"):\n                next_run = compute_next_run(updated[\"schedule\"])\n                if next_run is None and updated[\"schedule\"].get(\"kind\") == \"once\":\n                    run_at = updated[\"schedule\"].get(\"run_at\", \"unknown\")\n                    raise ValueError(\n                        f\"Requested one-shot time {run_at} is in the past \"\n                        f\"(grace window: {ONESHOT_GRACE_SECONDS}s) and cannot be scheduled.\"\n                    )\n                updated[\"next_run_at\"] = next_run\n\n            jobs[i] = updated\n            save_jobs(jobs)\n            return _normalize_job_record(jobs[i])\n    return None\n\n\ndef pause_job(job_id: str, reason: Optional[str] = None) -> Optional[Dict[str, Any]]:\n    \"\"\"Pause a job without deleting it. Accepts a job ID or name.\"\"\"\n    job = resolve_job_ref(job_id)\n    if not job:\n        return None\n    return update_job(\n        job[\"id\"],","sourceCodeStart":1954,"sourceCodeEnd":1990,"githubUrl":"https://github.com/NousResearch/hermes-agent/blob/c896c09c42910c584c4c7d2325b58c14713ea42c/cron/jobs.py#L1954-L1990","documentation":"Error \"Requested one-shot time {run_at} is in the past (grace window: {ONESHOT_GRACE_SECONDS}s) and cannot be scheduled.\" thrown in NousResearch/hermes-agent.","triggerScenarios":"Thrown at cron/jobs.py:1972 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Schedule the one-shot at a future time (within the grace window)."],"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"}