后台任务台账,追踪所有后台工作(ACP/子 Agent/Cron/CLI)。

任务是记录,不是调度器。Cron 和 Heartbeat 决定何时运行,Tasks 追踪发生了什么。

哪些操作创建任务

✅ 创建任务:ACP 运行、子 Agent 派生、所有 Cron 执行、CLI Agent 命令 ❌ 不创建任务:Heartbeat 轮次、普通交互对话

任务状态流转

queued → running → succeeded / failed / timed_out / cancelled / lost

快速开始

# 列出所有任务(最新优先)
openclaw tasks list
openclaw tasks list --runtime acp
openclaw tasks list --status running
 
# 查看任务详情
openclaw tasks show <lookup>
 
# 取消运行中的任务
openclaw tasks cancel <lookup>
 
# 修改通知策略
openclaw tasks notify <lookup> state_changes
 
# 健康审计
openclaw tasks audit
 
# 维护(预览/应用)
openclaw tasks maintenance
openclaw tasks maintenance --apply

Task Flow 管理

openclaw tasks flow list
openclaw tasks flow show <flow-id>
openclaw tasks flow cancel <flow-id>

关键特性

  • 完成通知是推送驱动的(不需要轮询)
  • 隔离 Cron 运行完成后清理追踪的浏览器标签/进程
  • 终端记录保留 7 天后自动清理
  • Cron 任务在 Cron 运行时仍拥有时保持活跃

相关

  • concepts/automation-overview — 自动化机制选择
  • concepts/automation-cron — 定时任务
  • concepts/automation-taskflow — Task Flow 编排