Skip to content

Recurring cron jobs (kind: cron) fail to execute while one-shot (kind: at) jobs work fine #10733

@BNFMTG

Description

@BNFMTG

Bug Description

Recurring cron jobs with schedule.kind: "cron" are scheduled but never actually execute. One-shot jobs with schedule.kind: "at" work correctly.

Environment

  • OpenClaw version: 2026.2.3-1
  • OS: macOS (arm64)
  • Node: v24.6.0

Steps to Reproduce

  1. Create a recurring cron job with "expr": "* * * * *"
  2. Wait several minutes
  3. Check cron runs <jobId> — returns empty
  4. Check the store file — nextRunAtMs advances every minute but lastRunAtMs is never set

Observations

  • The store file mtime updates on schedule (timer IS firing)
  • nextRunAtMs advances correctly in the store
  • But lastRunAtMs never gets set and cron runs returns empty
  • One-shot at jobs work fine
  • Gateway restart does not resolve the issue

Workaround

One-shot at jobs continue to work as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions