openclaw - 💡(How to fix) Fix Native cron agent-turn fire saturates the gateway event loop (chat transports unresponsive for minutes)

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

Severity: high — a single scheduled job can take the gateway (and all chat transports) unresponsive for minutes.

Version: 2026.5.18 (also reproduced on 2026.5.7).

Summary: Firing one isolated-session agentTurn cron job drives the gateway event loop to full saturation. During the run, chat transports (Telegram, Discord) stop responding; recovery takes minutes.

Reproduction:

  1. Create an isolated-session cron job whose payload is kind: agentTurn with a model that spawns an ACP harness (e.g. openai-codex/...), lightContext: true.
  2. Fire it: openclaw cron run <id> --wait.
  3. Watch GET /readyz before and during the run.

Observed (a trivial local-script agent turn):

MetricBefore fireDuring/after fire
eventLoop.degradedfalsetrue
eventLoop.utilization0.0491.0
eventLoop.delayP99Ms2161,605
gateway process CPU~4.5%~98%

The cron run --wait call itself failed with gateway request timeout for connect / 1006 abnormal closure. 30s after the fire the loop was still degraded (utilization 0.998, delayP99 2864ms). Telegram and Discord were unresponsive for ~3 minutes.

Expected: a single scheduled agent turn should not block the event loop or take chat transports down. Cron work should be scheduled off the hot path or bounded so /readyz stays healthy.

Notes: 2026.5.18 shipped related fixes (#82764 prioritize manual turns over cron, #82811 before_agent_reply watchdog, #69121/#82433 restart drain) but none prevents this saturation.

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 Native cron agent-turn fire saturates the gateway event loop (chat transports unresponsive for minutes)