-
-
Notifications
You must be signed in to change notification settings - Fork 52.8k
Closed
Description
Description
After a gateway restart, the cron scheduler can get stuck with nextWakeAtMs set to a time in the past, causing all subsequent jobs to be missed until another restart.
Reproduction
- Gateway running with cron jobs
- Gateway restarts (manual or SIGUSR1)
- Scheduler's
nextWakeAtMsremains at the pre-restart value (now in the past) - No jobs fire until gateway is restarted again
Observed Behavior
cron statusshowednextWakeAtMsas ~11 hours in the past- Jobs listed had correct schedules but weren't executing
lastStatusfor jobs remained as last successful run before the stuck state- Gateway restart resolved the issue
Expected Behavior
After restart, scheduler should recalculate nextWakeAtMs based on current time and upcoming job schedules.
Environment
- OpenClaw version: 2026.2.1 (stable channel)
- OS: macOS Darwin 25.2.0 (arm64)
- Node: v25.2.1
Workaround
Restart the gateway. This resets the scheduler state correctly.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels