提交 bc92b4f2 编写于 作者: 许雪里's avatar 许雪里

任务线程轮空30次后自动销毁,降低低频任务的无效线程消耗。

上级 3138d48a
......@@ -143,7 +143,7 @@ public class JobThread extends Thread{
TriggerCallbackThread.pushCallBack(new HandleCallbackParam(triggerParam.getLogId(), stopResult));
}
} else {
if (idleTimes > 3) {
if (idleTimes > 30) {
XxlJobExecutor.removeJobThread(jobId, "excutor idel times over limit.");
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册