openclaw/src/cron/service
Trenton Sadrakula c2e9bfb864 fix(cron): anchor every jobs to lastRunAtMs to prevent drift
Fixes #1972 - nextRunAtMs was recalculating from current time on
updates/restarts, causing interval jobs to drift forward.

For 'every' schedule jobs, now uses lastRunAtMs as anchor when available,
falling back to anchorMs then nowMs. Cron expressions unchanged.

🤖 Generated with Clawdbot

Co-Authored-By: Clawd <noreply@anthropic.com>
2026-01-25 17:25:43 -06:00
..
jobs.test.ts fix(cron): anchor every jobs to lastRunAtMs to prevent drift 2026-01-25 17:25:43 -06:00
jobs.ts fix(cron): anchor every jobs to lastRunAtMs to prevent drift 2026-01-25 17:25:43 -06:00
locked.ts fix: prevent duplicate cron runs across hot reloads 2026-01-20 10:36:46 +00:00
normalize.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
ops.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
state.ts feat: mirror delivered outbound messages (#1031) 2026-01-17 02:03:18 +00:00
store.ts fix: prevent duplicate cron runs across hot reloads 2026-01-20 10:36:46 +00:00
timer.ts feat: mirror delivered outbound messages (#1031) 2026-01-17 02:03:18 +00:00