You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/cli/cron.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -141,7 +141,7 @@ Recurring jobs use exponential retry backoff after consecutive errors: 30s, 1m,
141
141
142
142
Skipped runs are tracked separately from execution errors. They do not affect retry backoff, but `openclaw cron edit <job-id> --failure-alert-include-skipped` can opt failure alerts into repeated skipped-run notifications.
143
143
144
-
For isolated jobs that target a local configured model provider, cron runs a lightweight provider preflight before starting the agent turn. Loopback, private-network, and `.local``api: "ollama"` providers are probed at `/api/tags`; local OpenAI-compatible providers such as vLLM, SGLang, and LM Studio are probed at `/models`. If an endpoint is unreachable after the configured attempts, cron advances to the next configured model fallback. The run is recorded as `skipped` and retried on a later schedule only when no candidate is reachable. Matching dead endpoints are cached for 5 minutes to avoid many jobs hammering the same local server. Tune `cron.modelPreflight.timeoutMs`, `cron.modelPreflight.maxAttempts`, and `cron.modelPreflight.retryDelayMs` when a sleeping local/LAN provider needs a short wake-up window before cron advances to a fallback or gives up. The worst-case preflight window is limited to 55s so it stays below cron's isolated-agent setup watchdog.
144
+
For isolated jobs that target a local configured model provider, cron runs a lightweight provider preflight before starting the agent turn. Loopback, private-network, and `.local` `api: "ollama"` providers are probed at `/api/tags`; local OpenAI-compatible providers such as vLLM, SGLang, and LM Studio are probed at `/models`. If an endpoint is unreachable after the configured attempts, cron advances to the next configured model fallback. The run is recorded as `skipped` and retried on a later schedule only when no candidate is reachable. Matching dead endpoints are cached for 5 minutes to avoid many jobs hammering the same local server. Tune `cron.modelPreflight.timeoutMs`, `cron.modelPreflight.maxAttempts`, and `cron.modelPreflight.retryDelayMs` when a sleeping local/LAN provider needs a short wake-up window before cron advances to a fallback or gives up. The entire candidate-chain preflight is limited to 55s, and each probe or delay is clamped to the remaining budget so setup stays below cron's isolated-agent watchdog.
145
145
146
146
Note: cron jobs, pending runtime state, and run history live in the shared SQLite state database. Legacy `jobs.json`, `jobs-state.json`, and `runs/*.jsonl` files are imported once and renamed with a `.migrated` suffix. After import, edit schedules with `openclaw cron add|edit|remove` instead of editing JSON files.
Copy file name to clipboardExpand all lines: docs/gateway/configuration-reference.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1296,7 +1296,7 @@ Current builds no longer include the TCP bridge. Nodes connect over the Gateway
1296
1296
timeoutMs:2500, // default per-attempt timeout
1297
1297
maxAttempts:1, // default probe attempts before skipped
1298
1298
retryDelayMs:0, // default delay between attempts
1299
-
//worst-case window is limited to 55s so preflight stays below cron's setup watchdog
1299
+
//the full candidate chain is limited to 55s by cron's setup watchdog budget
1300
1300
},
1301
1301
},
1302
1302
}
@@ -1305,7 +1305,7 @@ Current builds no longer include the TCP bridge. Nodes connect over the Gateway
1305
1305
-`sessionRetention`: how long to keep completed isolated cron run sessions before pruning from `sessions.json`. Also controls cleanup of archived deleted cron transcripts. Default: `24h`; set `false` to disable.
1306
1306
-`runLog.maxBytes`: accepted for compatibility with older file-backed cron run logs. Default: `2_000_000` bytes.
1307
1307
-`runLog.keepLines`: newest SQLite run-history rows retained per job. Default: `2000`.
1308
-
-`modelPreflight`: local model-provider preflight controls for isolated cron agent turns. Increase `maxAttempts`, `retryDelayMs`, or `timeoutMs` when a sleeping Ollama/vLLM/LM Studio host needs a short wake-up window before cron advances to a configured fallback or marks the run skipped. The worst-case window (`timeoutMs * maxAttempts + retryDelayMs * (maxAttempts - 1)`) must stay at or below 55s so preflight remains below cron's isolated-agent setup watchdog.
1308
+
-`modelPreflight`: local model-provider preflight controls for isolated cron agent turns. Increase `maxAttempts`, `retryDelayMs`, or `timeoutMs` when a sleeping Ollama/vLLM/LM Studio host needs a short wake-up window before cron advances to a configured fallback or marks the run skipped. The configured per-endpoint window (`timeoutMs * maxAttempts + retryDelayMs * (maxAttempts - 1)`) must stay at or below 55s. Cron also shares one 55s deadline across the complete candidate chain and clamps each probe or delay to the remaining budget.
1309
1309
-`webhookToken`: bearer token used for cron webhook POST delivery (`delivery.mode = "webhook"`), if omitted no auth header is sent.
1310
1310
-`webhook`: deprecated legacy fallback webhook URL (http/https) used by `openclaw doctor --fix` to migrate stored jobs that still have `notify: true`; runtime delivery uses per-job `delivery.mode="webhook"` plus `delivery.to`, or `delivery.completionDestination` when preserving announce delivery.
"How many trailing run-history rows to retain per cron job (default `2000`). Increase for longer forensic history or lower for smaller disks.",
1719
1719
"cron.modelPreflight":
1720
-
"Controls the lightweight local model-provider preflight used before isolated cron agent turns. Tune this when local or LAN providers such as Ollama need a few seconds to wake before /api/tags or /models responds. The total retry window is capped at 55s to stay below cron's setup watchdog.",
1720
+
"Controls the lightweight local model-provider preflight used before isolated cron agent turns. Tune this when local or LAN providers such as Ollama need a few seconds to wake before /api/tags or /models responds. Each configured endpoint window and the complete fallback candidate chain are capped at 55s to stay below cron's setup watchdog.",
1721
1721
"cron.modelPreflight.timeoutMs":
1722
1722
"Per-attempt timeout in milliseconds for local model-provider preflight probes (default: 2500). Increase for slow LAN or cold-starting providers while keeping the total retry window <= 55s.",
0 commit comments