mirror of https://github.com/openclaw/openclaw.git
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 |
||
|---|---|---|
| .. | ||
| isolated-agent.test.ts | ||
| isolated-agent.ts | ||
| run-log.test.ts | ||
| run-log.ts | ||
| schedule.test.ts | ||
| schedule.ts | ||
| service.test.ts | ||
| service.ts | ||
| store.ts | ||
| types.ts | ||