openclaw - โœ…(Solved) Fix Isolated cron agentTurn jobs without lightContext/toolsAllow timeout on cold start before doing any work [1 pull requests, 1 comments, 2 participants]

Official PRs (โ€ฆ)
ON THIS PAGE

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โ€ฆ
GitHub stats
openclaw/openclaw#74803โ€ขFetched 2026-05-01 05:41:13
View on GitHub
Comments
1
Participants
2
Timeline
3
Reactions
2
Timeline (top)
cross-referenced ร—2commented ร—1

Error Message

Job run history shows 4/4 consecutive timeouts at exactly 60 s. The job never reaches its first tool call. No error other than "cron: job execution timed out".

  1. The gateway should warn at job creation/update time when a job likely needs lightContext or toolsAllow based on its timeout and task scope, or Silent failure โ€” the job shows as "error" but the error message gives no indication that cold-start overhead is the cause. Easy to miss if you don't check run history.

Fix Action

Workaround

Set lightContext: true and toolsAllow: [<only needed tools>] on the job. Also set timeoutSeconds to at least 2โ€“3ร— the expected task duration.

PR fix notes

PR #74893: fix(cron): warn when isolated agentTurn lacks lightContext or toolsAllow

Description (problem / solution / changelog)

Summary

Targeted single-issue fix.

Closes #74803

๐Ÿค– Generated with Claude Code

Changed files

  • src/cron/isolated-agent/run.skill-filter.test.ts (modified, +6/-1)
  • src/cron/isolated-agent/run.ts (modified, +16/-0)
RAW_BUFFERClick to expand / collapse

Bug

Isolated agentTurn cron jobs that don't set lightContext: true and don't restrict toolsAllow spend their entire timeout budget on session bootstrap (loading full agent context, memory, workspace files) and timeout before executing any actual work.

Steps to reproduce

  1. Create a cron job with sessionTarget: isolated, payload.kind: agentTurn, no lightContext, no toolsAllow, and timeoutSeconds: 60
  2. Task only needs one or two tools (e.g. web_fetch + message)
  3. Observe: job times out at exactly 60 s every run, never executes its task

Current behavior

Job run history shows 4/4 consecutive timeouts at exactly 60 s. The job never reaches its first tool call. No error other than "cron: job execution timed out".

Expected behavior

Either:

  1. The gateway should warn at job creation/update time when a job likely needs lightContext or toolsAllow based on its timeout and task scope, or
  2. The default timeout for isolated agentTurn jobs should account for cold-start overhead (cold start can take 30โ€“45 s on a loaded system), or
  3. Docs should prominently call out that isolated jobs doing simple tasks must set lightContext: true and restrict toolsAllow to avoid spending the budget on bootstrap

Workaround

Set lightContext: true and toolsAllow: [<only needed tools>] on the job. Also set timeoutSeconds to at least 2โ€“3ร— the expected task duration.

Impact

Silent failure โ€” the job shows as "error" but the error message gives no indication that cold-start overhead is the cause. Easy to miss if you don't check run history.

extent analysis

TL;DR

Set lightContext: true and restrict toolsAllow to necessary tools to avoid timeout issues in isolated agentTurn cron jobs.

Guidance

  • Identify isolated agentTurn cron jobs with no lightContext and unrestricted toolsAllow to assess potential timeout risks.
  • Verify job run history for consecutive timeouts at the exact timeout interval to confirm the issue.
  • Consider increasing timeoutSeconds to at least 2-3 times the expected task duration to account for cold-start overhead.
  • Review job configurations to ensure lightContext and toolsAllow are properly set based on task requirements.

Example

{
  "sessionTarget": "isolated",
  "payload": {
    "kind": "agentTurn",
    "lightContext": true,
    "toolsAllow": ["web_fetch", "message"]
  },
  "timeoutSeconds": 180
}

Notes

This solution assumes that the task only requires specific tools and that increasing the timeout is feasible. Further investigation may be needed to optimize job configurations and minimize cold-start overhead.

Recommendation

Apply workaround: Set lightContext: true and restrict toolsAllow to necessary tools, and adjust timeoutSeconds accordingly, as this directly addresses the identified issue and prevents silent failures.

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โ€ฆ

FAQ

Expected behavior

Either:

  1. The gateway should warn at job creation/update time when a job likely needs lightContext or toolsAllow based on its timeout and task scope, or
  2. The default timeout for isolated agentTurn jobs should account for cold-start overhead (cold start can take 30โ€“45 s on a loaded system), or
  3. Docs should prominently call out that isolated jobs doing simple tasks must set lightContext: true and restrict toolsAllow to avoid spending the budget on bootstrap

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 - โœ…(Solved) Fix Isolated cron agentTurn jobs without lightContext/toolsAllow timeout on cold start before doing any work [1 pull requests, 1 comments, 2 participants]