An OpenClaw isolated cron job runs on schedule but its report never reaches the team Slack channel — how is delivery decided, and what do you check?
answer
- the runner is only a fallback
- announce, webhook or none
- channel plus a prefixed target
- NO_REPLY means silence, not failure
- status versus completionStatus
basics
~20 sIsolated jobs default to announce: the runner posts the final reply to the resolved channel and target unless the agent already sent it. Check the route with openclaw cron show, then run history for delivery errors or suppression.
solid answer
~40 sDelivery has three modes: `announce`, the default for isolated jobs, fallback-delivers the final text; `webhook` POSTs the finished payload; `none` (`--no-deliver`) sends nothing from the runner. Announce needs a route it can resolve: `--channel` defaults to `last`, so on a host with several channels set `--channel slack` and a prefixed target such as `--to "channel:C1234567890"`. `openclaw cron show <jobId>` previews the resolved route or says it will fail closed. Then read `openclaw cron runs <jobId>`: execution `status` and whole-run `completionStatus` are separate, so `ok` with `completionStatus` `failed` means the turn worked and the send did not, often channel credentials (`unauthorized`, `Forbidden`). A `deliverySuppressionReason` of `silent` means the agent answered `NO_REPLY`, which is intentional rather than a fault.
code
bash · 4 linesopenclaw cron show <jobId>
openclaw cron runs <jobId> --delivery-status not-delivered --limit 20
openclaw cron edit <jobId> --announce --channel slack --to "channel:C1234567890"
openclaw cron run <jobId> --waitgo deeper
Know that isolated jobs announce their final reply by default and that --no-deliver turns the runner's send off.
Explain how the channel and target resolve, why Slack targets need a channel: prefix, and how status differs from completionStatus in run history.
Diagnose from evidence: cron show for the route, runs with delivery filters, suppression reasons, and credential errors, then prove the fix with a forced run.
Decide when best-effort delivery is acceptable and when a silent broken route is worse than a failing job that pages someone.
## Who actually sends the result In an OpenClaw **isolated** job (one that runs its own agent turn in a fresh `cron:<jobId>` session), delivery is shared between two parties: - **The agent** can send messages itself with the `message` tool whenever a chat route is available, and it can do so even when runner delivery is off. - **The runner** (the scheduler code that ran the job) can then *fallback-deliver* the agent's final reply. If the agent already sent to the resolved target, the runner skips its own send, so the same report is not posted twice. So "the report never arrived" means both paths failed to post, or one of them was told not to. ## The three delivery modes | Mode | Set with | What the runner does | |---|---|---| | `announce` | default for isolated jobs, or `--announce` | posts the final text to the resolved channel and target if the agent did not | | `webhook` | `--webhook <url>` | POSTs the finished event payload to a URL | | `none` | `--no-deliver` | nothing; the agent's own `message` sends still work | Main-session jobs are different: they use the main conversation's own route, and adding `--announce` or `--channel` to one is rejected. ## Resolving the target - `--channel` defaults to `last`, meaning the channel from session history. On a host with several channels configured, an isolated announce job must name `--channel` unless a provider-prefixed `--to` or a preserved session route selects it. - Slack, Discord and Mattermost targets use explicit prefixes: `channel:<id>` or `user:<id>`. - If `--channel` is explicit, a provider-prefixed `--to` must name the same provider; `channel: "whatsapp"` with `to: "telegram:123"` is rejected. - A DM approved through pairing is **not** a fallback recipient. To have a job write to someone's DM proactively, set `delivery.to` or add them to the channel's `allowFrom`. ## Reading the run history `openclaw cron runs <jobId>` keeps two separate verdicts: - `status` is payload execution: `ok`, `error` or `skipped`. - `completionStatus` is the whole run including required delivery: `succeeded`, `failed` or `unknown`. A delivery-only failure shows as `status: "ok"` with `completionStatus: "failed"`. It does not count as an execution error and does not trigger retry backoff. Filters help: `--delivery-status not-delivered`, `--status error`, `--query <text>`. Each entry carries delivery diagnostics: the intended target, the resolved target, any `message`-tool sends and whether fallback was used. ## A diagnosis ladder 1. `openclaw cron show <jobId>`: is the resolved route the Slack channel you meant, or does it fail closed? 2. `openclaw cron runs <jobId> --limit 20`: did the runs execute (`status`) and complete (`completionStatus`)? 3. Look for `deliverySuppressionReason`: `silent` (the agent returned `NO_REPLY`), `empty`, `heartbeat` or `channel_transform` are intentional, not delivery errors. 4. Look for credential errors such as `unauthorized` or `Forbidden` from the channel. 5. `openclaw logs --follow` while forcing a run with `openclaw cron run <jobId>`. ## Webhook delivery specifics When the job uses `--webhook <url>` instead of a chat: - Every outbound automation webhook passes a strict SSRF guard. Loopback, private and link-local targets are refused by default; allow a trusted local receiver with `cron.webhookSsrfPolicy.allowedHostnames`. - `cron.webhookToken` is sent as `Authorization: Bearer <token>`; URLs with embedded username and password are not allowed. - A successful run with an empty summary skips the POST and records `deliverySuppressionReason: "empty"`; errors are still sent. - Delivery counts only after an HTTP 2xx. A rejection records not delivered; a lost response stays unknown and is not retried. - `--webhook` cannot be combined with `--announce`, `--channel` or `--to`. ## Things that look like failures but are not - **`NO_REPLY`.** An isolated run that returns only the silent token posts nothing, by design. Human output labels it `ok (suppressed)`. - **`--no-deliver` yet a message appeared.** The agent used the `message` tool itself; `--no-deliver` disables only the runner's fallback. Restrict the job's tools with `--tools` if it must not send. - **`delivery unknown`.** The send may have reached the receiver but no confirmation came back; OpenClaw does not resend, to avoid duplicates. Fixing the usual case is one edit: `openclaw cron edit <jobId> --announce --channel slack --to "channel:C1234567890"`, then a forced run to watch it land.
- Why does an OpenClaw one-shot `--at` job sometimes stay in the list, disabled, after it ran?A one-shot is deleted only when the whole run succeeds, which includes required delivery. If execution worked but delivery failed, or its outcome is unknown, OpenClaw keeps the job disabled with no next run, so a restart cannot replay its side effects. Inspect `openclaw cron runs <jobId>` before retrying or removing it. Intentional silence and runs with `delivery.bestEffort: true` still delete normally.
- What does `--best-effort-deliver` change for an OpenClaw isolated job?It sets `delivery.bestEffort: true`, so a failed delivery does not fail the run: the job can complete successfully without claiming delivery, and inherited default failure alerts are suppressed. It does not pick a channel for you. Use it only when losing an occasional report is acceptable, because otherwise a broken route goes unnoticed.
- --no-deliver stops the agent from messaging anyone during the run.
- A run with status ok proves the report reached the channel.
- NO_REPLY in run history is a delivery failure to fix.
- Approving someone through DM pairing makes them an automatic job recipient.
- Adding --announce --channel slack to a main-session job fixes its delivery.