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
{{ message }}
Repository navigation
Commit fa1d34f
Browse filesBrowse the repository at this point in the historyBrowse files
@@ -473,6 +478,9 @@ Disable cron: `cron.enabled: false` or `OPENCLAW_SKIP_CRON=1`.
473
478
</Accordion>
474
479
<Accordiontitle="Maintenance">
475
480
`cron.sessionRetention` (default `24h`) prunes isolated run-session entries. `cron.runLog.keepLines` limits retained SQLite run-history rows per job; `maxBytes` is retained for config compatibility with older file-backed run logs.
481
+
482
+
`cron.maintenance` is a separate scheduler policy. When enabled, OpenClaw resolves a daily maintenance phase from `window.start`, `window.end`, and `window.timezone`. Agents listed in `maintenanceAgents` can run only during that maintenance window; all other agents are blocked during the window. Blocked cron runs persist deferred counters in job state and replay FIFO when their phase is allowed again. Heartbeat deferrals are held in memory and replayed when the phase allows. `cron status` includes additive maintenance diagnostics so operators can see the current phase and deferred counts.
Copy file name to clipboardExpand all lines: docs/cli/cron.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -200,6 +200,7 @@ Retention and pruning are controlled in config:
200
200
201
201
-`cron.sessionRetention` (default `24h`) prunes completed isolated run sessions.
202
202
-`cron.runLog.keepLines` prunes retained SQLite run-history rows per job. `cron.runLog.maxBytes` remains accepted for compatibility with older file-backed run logs.
203
+
-`cron.maintenance` enables a daily maintenance window shared by cron and heartbeat. Agents listed in `cron.maintenance.maintenanceAgents` run only during the maintenance phase; ordinary agents are blocked during that phase. Blocked cron runs persist deferred counters and replay FIFO when the phase allows. `openclaw cron status --json` includes additive maintenance diagnostics.
timezone:"user", // "user", "local", or IANA timezone id
1296
+
},
1297
+
maintenanceAgents: ["maintenance"],
1298
+
},
1290
1299
},
1291
1300
}
1292
1301
```
@@ -1296,6 +1305,10 @@ Current builds no longer include the TCP bridge. Nodes connect over the Gateway
1296
1305
-`runLog.keepLines`: newest SQLite run-history rows retained per job. Default: `2000`.
1297
1306
-`webhookToken`: bearer token used for cron webhook POST delivery (`delivery.mode = "webhook"`), if omitted no auth header is sent.
1298
1307
-`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.
1308
+
-`maintenance.enabled`: enables daily maintenance-window role isolation for cron and heartbeat schedulers.
1309
+
-`maintenance.window.start` / `maintenance.window.end`: daily maintenance window in `HH:MM` 24-hour time. Start is inclusive; end is exclusive. `24:00` is valid only for `end`.
1310
+
-`maintenance.window.timezone`: timezone used to resolve the daily window. Use `"user"`, `"local"`, or an IANA timezone id. Default behavior follows user timezone resolution.
1311
+
-`maintenance.maintenanceAgents`: explicit agent ids allowed only during maintenance. Non-maintenance agents are blocked during the maintenance phase; maintenance agents are blocked during normal phase. Blocked cron runs persist deferred counters and replay FIFO when allowed. Heartbeat deferrals are in-memory and replay when allowed.
"Compatibility setting for older file-backed cron run logs (for example `2mb`, default `2000000`). SQLite run history pruning is row-count based.",
1714
1714
"cron.runLog.keepLines":
1715
1715
"How many trailing run-history rows to retain per cron job (default `2000`). Increase for longer forensic history or lower for smaller disks.",
1716
+
"cron.maintenance":
1717
+
"Maintenance-window scheduler controls for role isolation between normal agents and dedicated maintenance agents across cron and heartbeat flows.",
1718
+
"cron.maintenance.enabled":
1719
+
"Enables maintenance-window phase isolation. When enabled, only maintenanceAgents run during the configured window, and those agents are blocked outside it.",
1720
+
"cron.maintenance.window":
1721
+
"Defines the daily maintenance window with start/end 24-hour times and timezone. Use cross-midnight windows such as `23:00` to `02:00` for overnight maintenance.",
1722
+
"cron.maintenance.window.start":
1723
+
"Sets the inclusive maintenance window start time in `HH:MM` 24-hour format. Use values such as `02:00` to begin maintenance gating at a predictable local time.",
1724
+
"cron.maintenance.window.end":
1725
+
"Sets the exclusive maintenance window end time in `HH:MM` 24-hour format. Use `24:00` only for end-of-day windows that should run until midnight.",
1726
+
"cron.maintenance.window.timezone":
1727
+
'Timezone for maintenance window evaluation. Use "user" (default), "local", or an IANA timezone such as `America/Los_Angeles`.',
1728
+
"cron.maintenance.maintenanceAgents":
1729
+
"Use this explicit agent-id allowlist to reserve maintenance-only workers for the maintenance window. Example: [`ops-maint`, `cleanup-bot`]. Listed agents are blocked during normal runtime.",
1716
1730
transcripts:
1717
1731
"Core transcript capture settings for recording-capable agent tools and configured live meeting auto-start sources. Keep disabled unless operators explicitly want agents to capture or import meeting transcripts.",
0 commit comments