openclaw/src/cron
James Groat 7154bc6857 fix(cron): prevent every schedule from firing in infinite loop
When anchorMs is not provided (always in production), the schedule
computed nextRunAtMs as nowMs, causing jobs to fire immediately and
repeatedly instead of at the configured interval.

- Change nowMs <= anchor to nowMs < anchor to prevent early return
- Add Math.max(1, ...) to ensure steps is always at least 1
- Add test for anchorMs not provided case
2026-01-01 17:30:05 -07:00
..
isolated-agent.test.ts fix: align telegram token resolution 2026-01-01 21:22:59 +01:00
isolated-agent.ts fix: align telegram token resolution 2026-01-01 21:22:59 +01:00
run-log.test.ts refactor(cron): move store into ~/.clawdis/cron 2025-12-13 12:38:08 +00:00
run-log.ts refactor(cron): move store into ~/.clawdis/cron 2025-12-13 12:38:08 +00:00
schedule.test.ts fix(cron): prevent every schedule from firing in infinite loop 2026-01-01 17:30:05 -07:00
schedule.ts fix(cron): prevent every schedule from firing in infinite loop 2026-01-01 17:30:05 -07:00
service.test.ts feat: unify gateway heartbeat 2025-12-26 02:35:40 +01:00
service.ts feat: unify gateway heartbeat 2025-12-26 02:35:40 +01:00
store.ts refactor(cron): drop auto-migration 2025-12-13 12:45:02 +00:00
types.ts fix(signal): stabilize daemon + add signal delivery 2026-01-01 15:31:41 +00:00