-
-
Notifications
You must be signed in to change notification settings - Fork 39.8k
Closed
Description
Description
The internal Cron scheduler exhibits a "Memory Amnesia" bug where it fails to load multiple jobs from jobs.json into the active memory state. While jobs are correctly persisted to disk via cron.add, the runtime scheduler (and cron.list) often only reflects a single job (typically the first one), causing subsequent scheduled tasks to fail silently.
Reproduction Steps
- Use
cron.addto create Job A. - Use
cron.addto create Job B. - Verify persistence:
cat ~/.openclaw/cron/jobs.jsonshows both A and B. - Verify memory: Run
cron.list. Result: Only Job A is shown. - Wait for Job B's trigger time. Result: Job B does not fire.
Expected Behavior
All jobs present in jobs.json should be loaded into the scheduler memory upon creation or Gateway restart.
Environment
- OS: macOS (Darwin 25.2.0)
- OpenClaw Version: 2026.2.1 (ed4529e)
- Node: v25.5.0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels