新版流量池服务端提交

This commit is contained in:
wong
2026-02-04 10:58:56 +08:00
parent f956fc949b
commit 7534dd79fa
19 changed files with 1101 additions and 147 deletions

View File

@@ -232,6 +232,22 @@ return [
'log_file' => 'call_recording.log',
],
// ===========================
// 低频任务(每 2 小时)
// ===========================
// V2 流量池数据同步,全量同步好友、群成员和标签数据到 V2 流量池系统
'traffic_pool_v2_sync' => [
'name' => 'V2 流量池数据同步',
'command' => 'migrate:trafficPoolV2',
'schedule' => '0 */2 * * *', // 每2小时的0分执行0:00, 2:00, 4:00...
'options' => [],
'enabled' => true,
'max_concurrent' => 1,
'timeout' => 3600, // 1小时超时
'log_file' => 'traffic_pool_v2_sync.log',
],
// ===========================
// 每日 / 每几天任务
// ===========================
@@ -291,6 +307,18 @@ return [
'log_file' => 'calculate_score.log',
],
// 每日 3:00 清除过期日志文件默认保留10天可通过 --days 参数修改
'clean_logs' => [
'name' => '清除过期日志文件',
'command' => 'clean:logs',
'schedule' => '0 3 * * *', // 每天3点
'options' => ['--days=10'], // 默认保留10天可修改为其他天数如 ['--days=7'] 保留7天
'enabled' => true,
'max_concurrent' => 1,
'timeout' => 300, // 5分钟超时
'log_file' => 'clean_logs.log',
],
// 每 3 天执行的全量任务
// 每 3 天 3:00 全量同步所有在线好友,做一次大规模校准