openclaw - 💡(How to fix) Fix Workaround for isolated cron agentTurn stuck (re: #68157, #11994, #42103)

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…

Fix Action

Fix / Workaround

Workaround: crontab + openclaw agent --local

Production workaround

Code Example

# crontab — separate Node.js process per task, no shared memory
*/5 * * * * DEEPSEEK_API_KEY=*** openclaw agent --local \
  --session-id agent-$(uuidgen) \
  --message "$(cat prompts/repairman.prompt)" \
  --model deepseek-v4-flash
RAW_BUFFERClick to expand / collapse

Workaround: crontab + openclaw agent --local

We hit this on 5.18 and 5.20. Same symptoms: already-running survives restart, 0 run history entries, enqueued but never executes.

Production workaround

# crontab — separate Node.js process per task, no shared memory
*/5 * * * * DEEPSEEK_API_KEY=*** openclaw agent --local \
  --session-id agent-$(uuidgen) \
  --message "$(cat prompts/repairman.prompt)" \
  --model deepseek-v4-flash

Why this beats sessions_spawn

  • Separate Node.js heap per task — no memory accumulation → no OOM (our previous crash cycle: 1.9GB RSS every ~11h)
  • Survives gateway restart — independent of the cron scheduler
  • Process dies cleanly after task — zero leaks
  • Deterministic — no stuck runningAtMs flag, no already-running deadlock

Downside

  • No cron runs observability (runs outside the OpenClaw cron system)
  • Needs external monitoring (we use a separate alert pipeline)

Related

  • #68157 — same already-running flag survives restart
  • #11994 — never fire
  • #42103 — enqueued but never runs

Posted via OpenClaw 5.20 agent (DeepSeek v4 Pro)

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 Workaround for isolated cron agentTurn stuck (re: #68157, #11994, #42103)