From 1c4f7ac5d5ca6810c9b6be624deb6c927adb7863 Mon Sep 17 00:00:00 2001 From: augushong Date: Mon, 1 Jun 2026 20:28:57 +0800 Subject: [PATCH] =?UTF-8?q?docs(timer):=20=E6=8A=80=E8=83=BD=E6=96=87?= =?UTF-8?q?=E6=A1=A3=E8=A1=A5=E5=85=85=20timer.php=20=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E9=A1=B9=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus --- .agents/skills/ulthon-timer/SKILL.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.agents/skills/ulthon-timer/SKILL.md b/.agents/skills/ulthon-timer/SKILL.md index b54cceb..c340514 100644 --- a/.agents/skills/ulthon-timer/SKILL.md +++ b/.agents/skills/ulthon-timer/SKILL.md @@ -197,6 +197,17 @@ site 任务会按站点域名发起请求,默认从 `sysconfig('site','site_do - `normal`:单进程循环 + Guzzle async(默认) - `parallel`:Workerman 多进程模式(并发更高,相关连接参数在 `timer.php` 中) +### 配置项说明 + +| 配置键 | 默认值 | 说明 | +|--------|--------|------| +| `mode` | `normal` | 运行模式(`normal` / `parallel`) | +| `max_conn_per_addr` | `128` | 每个域名最多维持的并发连接数(仅多进程模式生效) | +| `keepalive_timeout` | `86400` | 连接不通讯自动关闭时间(秒) | +| `connect_timeout` | `86400` | 连接超时时间(秒) | +| `timeout` | `86400` | 请求响应超时时间(秒) | +| `clear_log_days` | `3` | ClearLog 任务清理 debug_log 表的保留天数,支持从 `.env` 的 `TIMER_CLEAR_LOG_DAYS` 覆盖 | + ## 常见坑位(快速自检) - `name` 重复:会导致 Cache key 冲突,表现为任务“莫名其妙不跑/跑得不对”