openclaw - 💡(How to fix) Fix [Bug]: cron job executes multiple times (duplicate triggers)

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
RAW_BUFFERClick to expand / collapse

Bug Description

Cron jobs execute multiple times when triggered, causing duplicate notifications (e.g. Feishu messages sent twice).

Steps to Reproduce

  1. Set up a cron job with a simple schedule (e.g. cron=14 0 * * 2-6 for "内外价差 00:14")
  2. Wait for the cron to trigger
  3. Observed: the same job fires twice in ~11 seconds

Actual Behavior

Example from 2026-05-13 00:14:

  • First trigger: 00:14:27 | status=ok | delivery=delivered
  • Second trigger: 00:14:38 | status=ok | delivery=delivered

Same job ran twice within 11 seconds, both returned status=ok and delivered successfully.

Cron Configuration

All "内外价差" cron jobs appear to be affected (9 jobs, each with 2-3 log entries):

  • 内外价差 09:14, 10:14, 11:14, 13:44, 14:44, 21:14, 22:14, 23:14, 00:14

Environment

  • Runtime: agent=main | host=邬盈沣的Mac mini | os=Darwin 25.2.0
  • OpenClaw version: app 2026.4.15 (2026041590)
  • Node: 邬盈沣的Mac mini (192.168.31.57)

Impact

  • Duplicate Feishu notifications sent to users
  • Wasted API calls and compute
  • Confusing for users receiving multiple identical messages

Suggested Fix

Add deduplication at the cron execution layer — if a job is already running when the next trigger fires, skip the duplicate execution rather than running it concurrently.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix [Bug]: cron job executes multiple times (duplicate triggers)