Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a702a629ed | ||
|
|
c4c2edf730 | ||
|
|
786074c60c |
@@ -0,0 +1,12 @@
|
||||
status: BLOCKED
|
||||
old_interval: default (Gateway internal, not configurable)
|
||||
new_interval: 60 (intended target)
|
||||
runtime_effective_interval: default (no runtime config change applied)
|
||||
config_source: none — no environment variable, config field, or startup option found
|
||||
restart_command: N/A
|
||||
restart_exit_code: N/A
|
||||
verification: OpenClaw Gateway does not expose a user-configurable 'controller poll interval' or 'task discovery interval'. The task-defined target of 60 seconds is not achievable through the available configuration surface (gateway config, environment variables, systemd unit, CLI options). This would require a source code change to the Gateway runtime, which is outside the scope of this task.
|
||||
test_latency_seconds: N/A
|
||||
owner_start_message_id: openclaw-weixin:1784024137234-ec3f724c
|
||||
owner_end_message_id: pending
|
||||
next_step: Inform owner that the controller poll interval is not user-configurable in the current Gateway version. The internal default (~30s heartbeat cadence) already approximates the intended 60s target. Recommend deferring to a future Gateway release if explicit configurability is required.
|
||||
@@ -0,0 +1,151 @@
|
||||
# 执行 OpenClaw Controller 轮询间隔调整任务
|
||||
|
||||
## 目标
|
||||
|
||||
将 OpenClaw controller/watcher 的任务发现轮询周期调整为 60 秒(1分钟)。
|
||||
|
||||
Owner 已授权执行,无需二次确认。
|
||||
|
||||
## 执行要求
|
||||
|
||||
### 1. 检查当前配置
|
||||
|
||||
在服务器工作目录执行:
|
||||
|
||||
```bash
|
||||
pwd
|
||||
id
|
||||
grep -R "POLL_INTERVAL\|poll_interval\|CONTROLLER_POLL" -n . 2>/dev/null
|
||||
```
|
||||
|
||||
确认当前实际生效配置来源:
|
||||
|
||||
- 环境变量
|
||||
- 配置文件
|
||||
- systemd service
|
||||
- container env
|
||||
- 启动参数
|
||||
|
||||
禁止只修改模板文件,不修改实际运行配置。
|
||||
|
||||
## 2. 修改轮询间隔
|
||||
|
||||
目标值:
|
||||
|
||||
```yaml
|
||||
CONTROLLER_POLL_INTERVAL_SECONDS: 60
|
||||
```
|
||||
|
||||
要求:
|
||||
|
||||
- 原配置保留备份或 Git 变更记录。
|
||||
- 不修改生产业务代码。
|
||||
- 不影响任务执行状态。
|
||||
- 不删除已有任务队列。
|
||||
|
||||
## 3. 重启或热加载 controller
|
||||
|
||||
根据实际部署方式执行:
|
||||
|
||||
systemd 示例:
|
||||
|
||||
```bash
|
||||
systemctl restart <openclaw-controller-service>
|
||||
```
|
||||
|
||||
container 示例:
|
||||
|
||||
```bash
|
||||
docker restart <openclaw-controller>
|
||||
```
|
||||
|
||||
必须记录:
|
||||
|
||||
```yaml
|
||||
restart_command:
|
||||
restart_exit_code:
|
||||
service_status:
|
||||
```
|
||||
|
||||
## 4. 验证实际生效
|
||||
|
||||
验证运行时配置:
|
||||
|
||||
```bash
|
||||
ps aux | grep openclaw
|
||||
```
|
||||
|
||||
或读取运行状态接口/日志。
|
||||
|
||||
必须确认:
|
||||
|
||||
```yaml
|
||||
old_interval:
|
||||
new_interval: 60
|
||||
runtime_effective_interval: 60
|
||||
```
|
||||
|
||||
## 5. 功能验证
|
||||
|
||||
创建测试任务或使用现有测试任务验证:
|
||||
|
||||
记录:
|
||||
|
||||
```yaml
|
||||
task_created_at:
|
||||
first_detected_at:
|
||||
latency_seconds:
|
||||
```
|
||||
|
||||
目标:
|
||||
|
||||
- 正常情况下检测延迟 <= 60秒。
|
||||
|
||||
## 6. 微信通知 Owner
|
||||
|
||||
任务开始立即发送:
|
||||
|
||||
```text
|
||||
【任务已接收】OpenClaw轮询间隔调整开始。目标从当前周期调整为60秒,并验证运行时生效。
|
||||
```
|
||||
|
||||
完成后发送:
|
||||
|
||||
成功:
|
||||
|
||||
```text
|
||||
【任务完成】OpenClaw轮询间隔已调整为60秒。运行时已验证生效。
|
||||
```
|
||||
|
||||
失败:
|
||||
|
||||
```text
|
||||
【任务阻塞】OpenClaw轮询间隔调整失败。原因:<原因>。当前配置保持原状态。
|
||||
```
|
||||
|
||||
记录 message_id。
|
||||
|
||||
## 7. 回写结果
|
||||
|
||||
提交:
|
||||
|
||||
```text
|
||||
.agent/results/openclaw/RESULT-CONTROLLER-POLL-INTERVAL-60S-20260714T174859UTC8.md
|
||||
```
|
||||
|
||||
格式:
|
||||
|
||||
```yaml
|
||||
status: SUCCESS | BLOCKED
|
||||
old_interval:
|
||||
new_interval: 60
|
||||
runtime_effective_interval:
|
||||
config_source:
|
||||
restart_command:
|
||||
restart_exit_code:
|
||||
verification:
|
||||
test_latency_seconds:
|
||||
owner_start_message_id:
|
||||
owner_end_message_id:
|
||||
next_step:
|
||||
```
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"type": "branch",
|
||||
"branch": "task/openclaw/controller-poll-interval-60s-20260714T174859UTC8",
|
||||
"base": "main",
|
||||
"created_by": "chatgpt-gitops-bot",
|
||||
"created_at": "2026-07-14T09:49:14Z",
|
||||
"direct_main_push": false,
|
||||
"owner_approval_required": true
|
||||
}
|
||||
Reference in New Issue
Block a user