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 99d1303
Browse filesBrowse the repository at this point in the historyBrowse files
- Providers/xAI: add xAI Grok OAuth login for SuperGrok subscribers, letting `xai/*` models and xAI media/tool providers authenticate without `XAI_API_KEY`.
10
+
- CLI/cron: add `openclaw cron run --wait` with timeout and poll interval controls, plus exact `cron.runs --run-id` filtering so automation can block on one queued manual run. (#81929) Thanks @ificator.
10
11
- Maintainer tooling: route Crabbox skill defaults through the repo brokered AWS config, leaving Blacksmith Testbox as an explicit opt-in instead of the broad-proof default.
11
12
- CLI/onboarding: localize the setup wizard and bundled channel setup flows for English, Simplified Chinese, and Traditional Chinese. (#80645) Thanks @GaosCode.
12
13
- Agents/skills: cache hydrated `resolvedSkills` across warm gateway turns while keying reuse by the redacted effective config, reducing redundant skill snapshot rebuilds without crossing config-gated skill boundaries. (#81451) Thanks @solodmd.
`openclaw cron run <jobId>` returns after enqueueing the manual run. Use `--wait` for shutdown hooks, maintenance scripts, or other automation that must block until the queued run finishes. Wait mode polls the exact returned `runId`; it exits `0` for status `ok` and non-zero for `error`, `skipped`, or a wait timeout.
Copy file name to clipboardExpand all lines: docs/cli/cron.md
+11-3Lines changed: 11 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -100,16 +100,23 @@ Note: cron job definitions live in `jobs.json`, while pending runtime state live
100
100
101
101
### Manual runs
102
102
103
-
`openclaw cron run` returns as soon as the manual run is queued. Successful responses include `{ ok: true, enqueued: true, runId }`. Use `openclaw cron runs --id <job-id>` to follow the eventual outcome, or add `--wait` to keep the CLI open until that queued run records a terminal status.
103
+
`openclaw cron run <job-id>` force-runs by default and returns as soon as the manual run is queued. Successful responses include `{ ok: true, enqueued: true, runId }`. Use the returned `runId` to inspect the later result:
Add `--wait` when a script should block until that exact queued run records a terminal status:
104
111
105
112
```bash
106
113
openclaw cron run <job-id> --wait --wait-timeout 10m --poll-interval 2s
107
114
```
108
115
109
-
With `--wait`, the command exits `0` only when the run finishes with `ok`; `error`, `skipped`, or a wait timeout exit non-zero. `openclaw cron runs --id <job-id> --run-id <run-id>` filters history to one exact run.
116
+
With `--wait`, the CLI still calls `cron.run` first, then polls `cron.runs` for the returned `runId`. The command exits `0` only when the run finishes with status `ok`. It exits non-zero when the run finishes with `error` or `skipped`, when the Gateway response does not include a `runId`, or when `--wait-timeout` expires. `--poll-interval` must be greater than zero.
110
117
111
118
<Note>
112
-
`openclaw cron run <job-id>` force-runs by default. Use`--due` to keep the older "only run if due" behavior.
119
+
Use `--due` when you want the manual command to run only if the job is currently due. If`--due --wait` does not enqueue a run, the command returns the normal non-run response instead of polling.
113
120
</Note>
114
121
115
122
## Models
@@ -233,6 +240,7 @@ openclaw cron show <job-id>
233
240
openclaw cron run <job-id>
234
241
openclaw cron run <job-id> --due
235
242
openclaw cron run <job-id> --wait --wait-timeout 10m
243
+
openclaw cron run <job-id> --wait --wait-timeout 10m --poll-interval 2s
Copy file name to clipboardExpand all lines: docs/gateway/protocol.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -460,7 +460,8 @@ enumeration of `src/gateway/server-methods/*.ts`.
460
460
461
461
<Accordiontitle="Automation, skills, and tools">
462
462
- Automation: `wake` schedules an immediate or next-heartbeat wake text injection; `cron.get`, `cron.list`, `cron.status`, `cron.add`, `cron.update`, `cron.remove`, `cron.run`, `cron.runs` manage scheduled work.
463
-
- `cron.runs` accepts an optional `runId` filter so clients can follow one queued manual run without racing against other history entries for the same job.
463
+
- `cron.run` remains an enqueue-style RPC for manual runs. Clients that need completion semantics should read the returned `runId` and poll `cron.runs`.
464
+
- `cron.runs` accepts an optional non-empty `runId` filter so clients can follow one queued manual run without racing against other history entries for the same job.
464
465
- Skills and tools: `commands.list`, `skills.*`, `tools.catalog`, `tools.effective`, `tools.invoke`.
0 commit comments