-
-
Notifications
You must be signed in to change notification settings - Fork 69k
Cron scheduler: nextWakeAtMs always null, jobs never execute #7879
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Bug Description
The cron scheduler starts but never calculates nextWakeAtMs, causing all scheduled jobs to never run.
Environment
- OpenClaw version: 2026.2.1 (git: 1ee57cf, also tested on b37626c)
- OS: Ubuntu 22.04 LTS
- Node: v22.22.0
- Install method: git clone
Current Behavior
cron.status shows nextWakeAtMs: null — the scheduler starts but never calculates wake times:
$ openclaw cron status
{
"enabled": true,
"storePath": "/home/moltbot/.openclaw/cron/jobs.json",
"jobs": 6,
"nextWakeAtMs": null
}
Log output:
{"module":"cron",...} {"enabled":true,"jobs":6,"nextWakeAtMs":null} "cron: started"
Jobs Configured
- 2x
everyinterval jobs (5 min) - 2x
cronexpression jobs (daily at 8am/9am Cairo) - 1x test
everyjob (60 sec) - 1x test
cronjob
All show in list, none execute.
Steps Tried
- Added explicit
cronsection to config - Restarted gateway multiple times
- Removed & re-added jobs
- Updated to latest git (was 68 commits behind)
- Added simple
everyinterval test job — stillnull - Tried
cron.wakewithmode: now— no effect
Expected Behavior
nextWakeAtMs should calculate the next execution time based on job schedules.
Impact
All 6 cron jobs non-functional for ~2+ days. No daily backups, no scheduled updates.
Workaround
Using system crontab as fallback.
Related
Possibly related to #4862
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Fields
Give feedbackNo fields configured for issues without a type.