mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-01 00:51:45 +00:00
fix(cron): add retry policy for one-shot jobs on transient errors (#24355) (openclaw#24435) thanks @hugenshen
Verified: - pnpm install --frozen-lockfile - pnpm check - pnpm test -- --run src/cron/service.issue-regressions.test.ts src/config/config-misc.test.ts Co-authored-by: hugenshen <16300669+hugenshen@users.noreply.github.com> Co-authored-by: Tak Hoffman <781889+Takhoffman@users.noreply.github.com>
This commit is contained in:
@@ -1064,6 +1064,14 @@ export const FIELD_HELP: Record<string, string> = {
|
||||
"Path to the cron job store file used to persist scheduled jobs across restarts. Set an explicit path only when you need custom storage layout, backups, or mounted volumes.",
|
||||
"cron.maxConcurrentRuns":
|
||||
"Limits how many cron jobs can execute at the same time when multiple schedules fire together. Use lower values to protect CPU/memory under heavy automation load, or raise carefully for higher throughput.",
|
||||
"cron.retry":
|
||||
"Overrides the default retry policy for one-shot jobs when they fail with transient errors (rate limit, network, server_error). Omit to use defaults: maxAttempts 3, backoffMs [30000, 60000, 300000], retry all transient types.",
|
||||
"cron.retry.maxAttempts":
|
||||
"Max retries for one-shot jobs on transient errors before permanent disable (default: 3).",
|
||||
"cron.retry.backoffMs":
|
||||
"Backoff delays in ms for each retry attempt (default: [30000, 60000, 300000]). Use shorter values for faster retries.",
|
||||
"cron.retry.retryOn":
|
||||
"Error types to retry: rate_limit, network, timeout, server_error. Use to restrict which errors trigger retries; omit to retry all transient types.",
|
||||
"cron.webhook":
|
||||
'Deprecated legacy fallback webhook URL used only for old jobs with `notify=true`. Migrate to per-job delivery using `delivery.mode="webhook"` plus `delivery.to`, and avoid relying on this global field.',
|
||||
"cron.webhookToken":
|
||||
|
||||
Reference in New Issue
Block a user