A scheduler that reports enabled and runs nothing
OpenClaw is an open-source AI agent platform. Its gateway process has a cron scheduler built in. On the evening of 5 November 2026 that scheduler stopped starting jobs on one user's machine, and it started none for more than nine hours, until the gateway was restarted.
The status command said the scheduler was on the whole time. Manual runs worked. Nothing crashed. The log repeated one warning 39 times.
The bug is fixed. The signals that stayed green that night are the ones most teams trust for their own schedulers.
What broke in OpenClaw's cron
Issue #194032 was filed on 6 November against version 2026.10.10. The gateway ran as a systemd user service on Ubuntu 24.04 under WSL2.
The timer lived in a shared worker
OpenClaw keeps shared state in SQLite, served by a worker. The cron timer ran in that worker and held a lease on it. The same worker opens agent databases, roughly 2,600 times a day on the reporter's install.
Cancelling one database open retired the worker
A request got cancelled halfway through opening an agent database. The host refused the next admission, the worker treated that as a native failure, and the broker retired the whole worker. The cron lease went down with it.
The lease was never re-acquired
From then on every refresh logged this:
cron: worker refresh delayed
SqliteWorkerError: Shared-state worker lease is closed
Losing a lease is recoverable. The bug is that the scheduler held on to its dead connection and never asked for a new one. The first failure came at 22:44:18Z, the 39th at 07:46:40Z, and no scheduled run had started since 22:28Z.
Why every signal stayed green
enabled: true describes configuration
The relevant fields from openclaw cron status during the outage:
{ "enabled": true, "jobs": 41, "nextWakeAtMs": 1793918667708 }
enabled tells you the scheduler is switched on. That is all. A Kubernetes CronJob with suspend: false behaves the same way.
The next wake time was already in the past
The status did give it away, though. Convert the timestamp:
date -u -d @1793918667
# Thu Nov 5 22:44:27 UTC 2026
Nine seconds after the lease closed, and the field never moved again. Fifteen of the 32 enabled jobs had a nextRunAtMs already gone by. A working scheduler keeps pushing those forward.
Manual runs took a different path
openclaw cron run <id> --due kept working, so a quick test passed. It starts the job directly. The timer never gets involved, so the test only tells you the job is fine.
The logs had a warning, not an error
"Worker refresh delayed" reads like something that will sort itself out. Nothing exited, no OOM appeared, and an alert on errors had nothing to fire on.
The fix, and the week before it shipped
PR #194048, "fix(cron): scheduled jobs stay stopped after a native worker exits", merged on 12 November. On worker loss the scheduler now closes the dead connection and starts a replacement, retrying with bounded exponential backoff of up to 30 seconds. Success logs cron: scheduler reconnected after native worker loss. A failed attempt logs cron: worker recovery failed.
Reconnecting too early kept the dead store
The reporter counted five outages between 6 and 11 November. An early version of the fix reconnected 12 ms after the worker died, got the dead store back, and lost the new lease at once. Backoff solved it. Expect your own first retry to hit the same broken thing.
Merged on main is not in your release
On 17 November issue #200629 reported an 8 hour 50 minute stop on 2026.11.3, and noted the fix was missing from 2026.11.3, 2026.11.4 and 2026.11.5. A maintainer replied the next day that it ships in 2026.11.6. Check the version you actually run.
The trigger itself, cancelling a database open, is addressed in PR #197468. It was still open when we checked.
Checks that would have caught it
Alert on a next wake time in the past
If your scheduler exposes a next-run or next-wake time, compare it with the clock from outside the process. This script runs from the host crontab every five minutes and pings a heartbeat only while the wake time is current. A stalled scheduler and a broken check both end in a missing ping:
#!/usr/bin/env bash
set -euo pipefail
next_ms="$(openclaw cron status | node -e '
let s = ""; process.stdin.on("data", d => s += d).on("end", () =>
console.log(JSON.parse(s).nextWakeAtMs ?? Date.now()))')"
now_ms="$(( $(date +%s) * 1000 ))"
if (( now_ms - next_ms > 300000 )); then
echo "scheduler stalled: next wake $(( (now_ms - next_ms) / 60000 )) min ago" >&2
exit 1
fi
curl -fsS --retry 3 https://www.cronguard.app/api/ping/your-monitor-id
Adjust the parsing if your version prints the status differently.
A check-in from the job itself
A moving wake time shows the scheduler is ticking. Whether the nightly sync actually finished is a separate question. Give the jobs that matter their own dead man's switch: a ping as the last step of a successful run, and an alert when it is late.
Frequently asked questions about schedulers that stop silently
Why did OpenClaw's cron jobs stop running? The scheduler's timer lived in a shared SQLite worker. When a cancelled database open made the broker retire that worker, the scheduler kept its closed lease and never asked for a new one, so no scheduled job started until the gateway restarted.
Which OpenClaw versions are affected? Reports name 2026.10.10, 2026.11.3, 2026.11.4 and 2026.11.5. The fix merged on 12 November 2026, and a maintainer confirmed on 18 November that it is included in 2026.11.6.
Why did the status still say enabled during the outage? The enabled flag reports configuration, whether the scheduler is switched on, and says nothing about whether it is running anything. The giveaway was nextWakeAtMs, which stayed frozen at 22:44:27 UTC while the clock moved on.
Does a successful manual run prove the scheduler works? No. A manual run with the due flag starts the job directly and skips the scheduler's timer. In the OpenClaw outage manual runs worked all night while no scheduled run started.
How do I detect a scheduler that has stalled? From outside the process, check that the scheduler's next wake time is not in the past, and ping a heartbeat only when it is current. For important jobs, also send a check-in at the end of every successful run and alert when it is missing.
Further reading
- NestJS @Cron Jobs That Stop for Good: The cron 3.x Timer Bug
- Celery 5.7 Lets You Ping Beat. That Is Not a Schedule Check
- Dead Man's Switch Monitoring: The Only Reliable Way to Watch Cron Jobs
Conclusion: If you run OpenClaw, get onto 2026.11.6 or later. The bigger lesson applies to any scheduler: a status that says enabled is a setting, and a next wake time stuck in the past is the alarm. Watch that time from outside the process, and have the jobs you care about check in when they finish.
Sources: OpenClaw issue #194032, OpenClaw issue #200629, OpenClaw PR #194048, OpenClaw automations docs.