惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

腾讯CDC
GbyAI
GbyAI
C
CERT Recently Published Vulnerability Notes
S
Security @ Cisco Blogs
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
The Hacker News
The Hacker News
D
Darknet – Hacking Tools, Hacker News & Cyber Security
P
Proofpoint News Feed
C
Cyber Attacks, Cyber Crime and Cyber Security
S
Securelist
Security Latest
Security Latest
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Simon Willison's Weblog
Simon Willison's Weblog
Latest news
Latest news
T
Tor Project blog
T
Threat Research - Cisco Blogs
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Spread Privacy
Spread Privacy
K
Kaspersky official blog
T
The Exploit Database - CXSecurity.com
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
V2EX - 技术
V2EX - 技术
L
Lohrmann on Cybersecurity
Google Online Security Blog
Google Online Security Blog
Cyberwarzone
Cyberwarzone
Help Net Security
Help Net Security
The Last Watchdog
The Last Watchdog
C
Cybersecurity and Infrastructure Security Agency CISA
Attack and Defense Labs
Attack and Defense Labs
大猫的无限游戏
大猫的无限游戏
Schneier on Security
Schneier on Security
H
Heimdal Security Blog
O
OpenAI News
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
Visual Studio Blog
AI
AI
H
Hacker News: Front Page
博客园_首页
博客园 - 【当耐特】
L
LINUX DO - 最新话题
MyScale Blog
MyScale Blog
量子位
Vercel News
Vercel News
C
Cisco Blogs
L
LINUX DO - 热门话题
Y
Y Combinator Blog
T
Threatpost
爱范儿
爱范儿
P
Privacy & Cybersecurity Law Blog

博客园 - xgqfrms

xgqfrms, cnblogs, blogs xgqfrms, cnblogs, blogs xgqfrms, cnblogs, blogs xgqfrms, cnblogs, blogs xgqfrms, cnblogs, blogs xgqfrms, cnblogs, blogs xgqfrms, cnblogs, blogs xgqfrms, cnblogs, blogs xgqfrms, cnblogs, blogs xgqfrms, cnblogs, blogs xgqfrms, cnblogs, blogs xgqfrms, cnblogs, blogs Remotion Video Maker All In One git worktree All In One Tesla 的车机使用什么技术来渲染汽车模型的? 宜家 VEVELSTAD 维维斯托床架 All In One macOS sysmond bug All In One Three.js All In One The COF of LCD Monitor All In One Dell 显示器 S2419HM 灰屏 &花屏 All In One AI Harness Engineering All In One 电脑外接显示器天梯榜 All In One How to change the speed display unit of GSP from mph to km/h using GoPro Labs All In One WHCA 白宫记者协会 All In One Pascal Editor All In One 主流犬种图解指南 All In One 泡沫喷雾 & 辣椒喷雾 All In One 如何给身份证照片添加水印 All In One GoPro MISSION 1 PRO price All In One 杭州历史天气数据 All In One Pandoc All In One GoPro MISSION 1 SERIES All In One GoPro telemetry 中的 GPS5 与 GPS9 是什么 All In One xgqfrms, cnblogs, blogs xgqfrms, cnblogs, blogs xgqfrms, cnblogs, blogs xgqfrms, cnblogs, blogs xgqfrms, cnblogs, blogs xgqfrms, cnblogs, blogs OpenCode All In One free MongoDB Cloud API All In One 如何在 Raspberry Pi 安装 OpenClaw All In One free cloud LLM models API All In One Claude Code Free Video Tutorials All In One 如何解决 OpenClaw 升级后导致 feishu plugin 无法使用的问题 All In One Claude Code skills & plugins All In One LLM Benchmark All In One How to fix use the FileZilla FTP upload file error All In One
OpenClaw 设置 cron 定时任务 All In One
xgqfrms · 2026-03-28 · via 博客园 - xgqfrms

OpenClaw 设置 cron 定时任务 All In One

feishu weather bot

errors

问题原因
shanghai-weather-daily 任务确实配置了,但连续失败了 3 次,错误信息:
Delivering to Feishu requires target <chatId|user:openId|chat:chatId>

问题根源
任务的 delivery.channel 设置为 "last",但在 Feishu 中需要一个明确的目标聊天 ID。当前配置无法解析到正确的接收目标

修复方案
需要修改 cron 任务配置,指定明确的 Feishu 聊天 ID。有两个选项:

image

cron (Gateway)

$ openclaw cron --help

🦞 OpenClaw 2026.3.23-2 (7ffe7e4) — I've read more man pages than any human should—so you don't have to.

Usage: openclaw cron [options] [command]

Manage cron jobs (via Gateway)

Options:
  -h, --help  Display help for command

Commands:
  add         Add a cron job
  disable     Disable a cron job
  edit        Edit a cron job (patch fields)
  enable      Enable a cron job
  help        Display help for command
  list        List cron jobs
  rm          Remove a cron job
  run         Run a cron job now (debug)
  runs        Show cron run history (JSONL-backed)
  status      Show cron scheduler status

Docs: docs.openclaw.ai/cli/cron
Upgrade tip: run `openclaw doctor --fix` to normalize legacy cron job storage.

$ openclaw cron run <job-id>
$ openclaw cron runs --id <job-id>

image

$ openclaw cron list
ID                                   Name                     Schedule                         Next       Last       Status    Target    Agent ID   Model               
4c382689-4059-442d-b942-d54aea6b6802 shanghai-weather-daily   cron 0 8 * * * @ Asia/Shangha... in 20h     8m ago     error     isolated  main  

image

# job id
$ openclaw cron run <job id>

# ✅ job id
$ openclaw cron run 4c382689-4059-442d-b942-d54aea6b6802
{
  "ok": true,
  "enqueued": true,
  "runId": "manual:4c382689-4059-442d-b942-d54aea6b6802:1774669108375:2"
}

image

# ❌ job name
$ openclaw cron run shanghai-weather-daily
GatewayClientRequestError: Error: unknown cron job id: shanghai-weather-daily

image

# 配置文件
$ cat /home/xgqfms/.openclaw/cron/jobs.json

image

demos

corn jobs

{
  "version": 1,
  "jobs": [
    {
      "id": "4c382689-4059-442d-b942-d54aea6b6802",
      "agentId": "main",
      "name": "shanghai-weather-daily",
      "enabled": true,
      "createdAtMs": 1774554499198,
      "updatedAtMs": 1774666923746,
      "schedule": {
        "kind": "cron",
        "expr": "0 8 * * *",
        "tz": "Asia/Shanghai"
      },
      "sessionTarget": "isolated",
      "wakeMode": "now",
      "payload": {
        "kind": "agentTurn",
        "message": "请获取上海今天的天气预报,并提醒我是否需要注意防晒和带雨伞。"
      },
      "delivery": {
        "mode": "announce",
        "channel": "chat:oc_c3991196c******acc76914eba"
      },
      "state": {
        "nextRunAtMs": 1774742400000,
        "lastRunAtMs": 1774666897002,
        "lastRunStatus": "error",
        "lastStatus": "error",
        "lastDurationMs": 26744,
        "lastDeliveryStatus": "unknown",
        "consecutiveErrors": 4,
        "lastError": "Delivering to Feishu requires target <chatId|user:openId|chat:chatId>"
      }
    }
  ]
}

jq errors

# pretty print JSON
$ cat /home/xgqfms/.openclaw/cron/jobs.json | jq .

# ✅ 像 cat 一样输出 JSON 内容
# . 表示“原样输出整个 JSON”
$ jq . /home/xgqfms/.openclaw/cron/jobs.json

# ❌ jq 错误用法
# $ jq /home/xgqfms/.openclaw/cron/jobs.json
# 等价于 JSON 的“pretty print”
$ jq '.' file.json
# 等价于
$ cat file.json | jq .

https://chatgpt.com/c/69c745fc-4fcc-832a-9de4-3f8e32c23754

refs

https://docs.openclaw.ai/cli/cron

https://docs.openclaw.ai/automation/cron-jobs

©xgqfrms 2012-2021

www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!

原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!