Merge pull request #1193 from xyyz150/master
优化在JobThread尝试30次后销毁任务时,并发插入到triggerQueue中任务会失败的场景
This commit is contained in:
commit
12ebcfd4fd
|
@ -165,9 +165,11 @@ public class JobThread extends Thread{
|
|||
|
||||
} else {
|
||||
if (idleTimes > 30) {
|
||||
if(triggerQueue ==null||triggerQueue.size()==0) {
|
||||
XxlJobExecutor.removeJobThread(jobId, "excutor idel times over limit.");
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (Throwable e) {
|
||||
if (toStop) {
|
||||
XxlJobLogger.log("<br>----------- JobThread toStop, stopReason:" + stopReason);
|
||||
|
|
Loading…
Reference in New Issue