openclaw - 💡(How to fix) Fix cron: deleteAfterRun 失败 run 不触发删除导致孤儿堆积

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

worker workspace 清理时发现 20 个 enabled=false 的 listener-spawn isolated turn cron 残留,全部 lastRunStatus=error,错误信息统一为:

Code Example

isolated agent setup timed out before runner start
RAW_BUFFERClick to expand / collapse

现象

worker workspace 清理时发现 20 个 enabled=false 的 listener-spawn isolated turn cron 残留,全部 lastRunStatus=error,错误信息统一为:

isolated agent setup timed out before runner start

这些 job 配了 deleteAfterRun: true,但 run 失败后未被删除,长期堆积到 22 条(清理后 → 2)。

假设(待验证)

deleteAfterRun 可能只在 run 成功后触发删除,失败/超时的 run 不删 → listener-spawn 因 isolated agent setup timeout 失败 → 永不删 → 堆积。

待办

  1. 验证假设:翻 gateway scheduler 源码确认 deleteAfterRun 触发条件是否 gated on run success。
  2. 如属实:根因是「失败的 deleteAfterRun job 泄漏」。修法:无论 run 成败都执行删除——deleteAfterRun 语义是「跑完即删」,不该挑成败。否则任何瞬时失败都会留垃圾。
  3. 顺带(建议另开 issue 不混入同一 fix):这些 listener-spawn 为何 isolated agent setup timed out before runner start?isolated agent 启动慢可能是独立根因。

关联

  • SPEC-150 listener-spawn isolated turn 设计
  • 发现时间:2026-05-30 worker workspace 例行清理

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 cron: deleteAfterRun 失败 run 不触发删除导致孤儿堆积