新增调度配置
This commit is contained in:
parent
b8de40a60f
commit
e678b4ce51
@ -65,4 +65,39 @@ return [
|
||||
'image' => 'fileSize:' . 1024 * 1024 * 5 . '|fileExt:jpg,png,gif,jpeg',
|
||||
'file' => 'fileSize:' . 1024 * 1024 * 10 . '|fileExt:txt,pdf,xlsx,xls,html,mp4,mp3,amr'
|
||||
],
|
||||
|
||||
/**
|
||||
* 任务调度配置
|
||||
*/
|
||||
'schedule' => [
|
||||
/**
|
||||
* 常驻 worker 数量
|
||||
*/
|
||||
'static_worker_number' => 1,
|
||||
|
||||
/**
|
||||
* 动态可扩展 worker 最大数量
|
||||
*/
|
||||
'max_worker_number' => 10,
|
||||
|
||||
/**
|
||||
* 存储位置
|
||||
*/
|
||||
'store_path' => runtime_path('catch/schedule'),
|
||||
|
||||
/**
|
||||
* 主进程 ID
|
||||
*/
|
||||
'master_pid_file' => runtime_path('catch/schedule') . 'master.pid',
|
||||
|
||||
/**
|
||||
* 日志记录
|
||||
*/
|
||||
'log' => [
|
||||
/**
|
||||
* 错误日志
|
||||
*/
|
||||
'error_log' => runtime_path('catch/schedule') . 'schedule-error.log',
|
||||
],
|
||||
],
|
||||
];
|
||||
|
Loading…
x
Reference in New Issue
Block a user