-
-
Notifications
You must be signed in to change notification settings - Fork 69.2k
Cron 'every' schedule not advancing nextRunAtMs after gateway restart #29690
Copy link
Copy link
Open
Labels
staleMarked as stale due to inactivityMarked as stale due to inactivity
Description
Description
Cron jobs with schedule kind 'every' (e.g., 'every 1h') fail to advance nextRunAtMs after gateway restart.
Steps to reproduce
- Create a cron job with schedule kind 'every' (e.g., every 1h)
- Let it run normally
- Restart the gateway
- Observe that nextRunAtMs is not updated after restart
Expected behavior
After gateway restart, the cron timer should be re-armed and nextRunAtMs should advance correctly.
Actual behavior
- After restart, missed jobs run via 'running missed jobs after restart' mechanism
- But timer is not re-armed: log shows "armTimer skipped - no jobs with nextRunAtMs"
- nextRunAtMs stays at the old value and never advances
Evidence from logs
{"module":"cron"} cron: running missed jobs after restart
{"module":"cron"} cron: armTimer skipped - no jobs with nextRunAtMs
{"module":"cron"} cron: started
Environment
- OpenClaw: 2026.2.24
- macOS: 26.2 (arm64)
- Node: 25.6.1
Affected jobs
- X_Deep_Miner_Hourly (every 1h)
- SmallCap_Scanner_Hourly (every 1h)
Workaround
Rebuilding the cron task resets the anchor and fixes the issue temporarily.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
staleMarked as stale due to inactivityMarked as stale due to inactivity
Type
Fields
Give feedbackNo fields configured for issues without a type.