openclaw - 💡(How to fix) Fix [Bug] Cron Job 误报失败 - Write 成功但状态标记为 failed

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…

Error Message

  • Error ts: 1778976335066 (2026-05-17 08:05:35 CST)
RAW_BUFFERClick to expand / collapse

问题描述

版本: OpenClaw 2026.5.7 (eeef486)

Cron job 报告 Write: to step3_filtered.json failed,但实际上:

  1. 文件已成功写入
  2. 所有步骤都已成功完成
  3. 消息也成功发送了
  4. 错误发生在任务完成之后约1分钟

关键时间线

时间事件状态
08:01:15step1_search.json 写入✅ 成功
08:01:42step2_merged.json 写入✅ 成功
08:03:36step3_filtered.json 写入成功
08:04:01step4_past.json 写入成功
08:04:10step5_reviewed.json 写入成功
08:04:355G消息简报生成成功
08:05:35报错 "Write: to step3_filtered.json failed"误报

诊断信息

  • Job ID: aee9f392-1c44-47e2-8371-327b3c3c73f1
  • Job Name: 5G消息每日简报 - Taskflow
  • Error ts: 1778976335066 (2026-05-17 08:05:35 CST)

预期 vs 实际

  • 预期: Cron job 状态应为 succeeded,因为所有步骤都成功完成
  • 实际: Cron job 状态为 failed,且错误信息指向 step3_filtered.json 写入失败

根因推测

  1. 可能是 Isolated session 退出时的状态保存/验证操作失败
  2. 或者是 tool 错误上报机制的时序问题,把后台错误错误地关联到任务本身

复现步骤

  1. 创建一个执行多步骤文件写入的 cron job
  2. 等待任务完成
  3. 观察任务状态被标记为 failed,但文件都存在

环境: WSL2 (Ubuntu), 2026.5.7

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 误报失败 - Write 成功但状态标记为 failed