mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-01 15:32:48 +08:00
docs(timer): 技能文档补充 timer.php 配置项说明
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -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 冲突,表现为任务“莫名其妙不跑/跑得不对”
|
||||
|
||||
Reference in New Issue
Block a user