openclaw - 💡(How to fix) Fix [Feature]: Support scheduled cron tasks for ACP runtime (agentTurn sessions_spawn)

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Code Example

# 方案 A:在 turn/policy 中扩展 runtime 声明
sendPolicy:
  trigger: "cron(0 9 * * *)" # 每天早上 9  agentTurn:
    runtime: "acp"
    action: "sessions_spawn"

# 方案 B:独立的定时任务模块
cron_jobs:
  - name: "daily-acp-sync"
    schedule: "0 9 * * *"
    target: "sessions_spawn(acp)"
RAW_BUFFERClick to expand / collapse

Summary

Is your feature request related to a problem? Please describe.

目前 openclaw 缺乏原生的定时任务(Cron)支持。如果想要定时触发特定的 agent 行为,无法直接通过配置或声明式的语法来实现,通常需要借助外部的第三方脚本或工具来间接调用。

Describe the solution you'd like

希望官方能够增加对定时任务的原生支持,允许在配置中声明类似 agentTurn 结合 runtime: "acp" 的结构,或者直接支持通过 Cron 表达式来定期调用 sessions_spawn(acp)

期望的配置或伪代码示例:

# 方案 A:在 turn/policy 中扩展 runtime 声明
sendPolicy:
  trigger: "cron(0 9 * * *)" # 每天早上 9 点
  agentTurn:
    runtime: "acp"
    action: "sessions_spawn"

# 方案 B:独立的定时任务模块
cron_jobs:
  - name: "daily-acp-sync"
    schedule: "0 9 * * *"
    target: "sessions_spawn(acp)"

Describe alternatives you've considered

当前的替代方案是在外部部署 Linux crontab 或使用 Node.js 的定时库,通过 API/CLI 强行触发任务。但这种方式割裂了项目本身的运行时环境(特别是涉及到 XPC_SERVICE_NAME 或 launchd 托管的 macOS/Linux 环境时,外部触发容易遇到权限或上下文丢失的问题)。

Additional context

引入该功能可以大幅提升无头节点(headless node)或 Gateway 在自动化场景下的表现,让系统具备自主、定时的多 Agent 协作能力。


Problem to solve

1

Proposed solution

1

Alternatives considered

No response

Impact

1

Evidence/examples

No response

Additional information

No response

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix [Feature]: Support scheduled cron tasks for ACP runtime (agentTurn sessions_spawn)