125 续15l-18: DB队列同类型上限3→8(止血CF抖动致PHP偶发10s卡住→周期Timer堆积丢弃),根治待直连源站绕CF
Auto Release / build (push) Successful in 2m30s

This commit is contained in:
youpaishidifu
2026-11-20 18:43:22 +08:00
parent c4ab6aa4de
commit 9f384377f6
+5 -3
View File
@@ -729,9 +729,11 @@ public class WebManager {
}
}
}
// ★ 同类型任务最多3个,超过则丢弃低优先级的(关键任务不丢弃)
if (sameTypeCount >= 3 && !bypassSslCheck) {
plugin.getLogger().warning("[DB队列] 同类型任务已满(3): " + taskType + ",丢弃: " + name);
// ★ 125 续15l-18:同类型任务上限 3→8(止血:CF 抖动致 PHP 偶发 10s 卡住时,
// 周期性 Timer 5s 喂入 → 旧上限 3 瞬间满 → 后续全丢弃。提到 8 让堆积不被丢弃,
// PHP 响应恢复后队列自然消化。根治=Java 直连源站绕 CF,本批先止血不堆积丢弃)
if (sameTypeCount >= 8 && !bypassSslCheck) {
plugin.getLogger().warning("[DB队列] 同类型任务已满(8): " + taskType + ",丢弃: " + name);
return;
}
DbTask task = new DbTask(priority, name, action);