fix: 提升到80并发

This commit is contained in:
imeepos 2025-07-18 11:33:54 +08:00
parent 176ad61ac0
commit 24d32825cd
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ impl VideoClassificationQueue {
// 考虑到AI分类任务主要是I/O密集型网络请求可以设置更高的并发数 // 考虑到AI分类任务主要是I/O密集型网络请求可以设置更高的并发数
// 但限制在10以内以避免过度消耗资源 // 但限制在10以内以避免过度消耗资源
let optimal = std::cmp::min(cpu_cores * 2, 20); let optimal = std::cmp::min(cpu_cores * 2, 80);
println!("🔧 检测到 {} 个CPU核心设置AI视频分类并发数为: {}", cpu_cores, optimal); println!("🔧 检测到 {} 个CPU核心设置AI视频分类并发数为: {}", cpu_cores, optimal);
optimal optimal