|
|
@ -165,9 +165,11 @@ public class JobThread extends Thread{
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
if (idleTimes > 30) {
|
|
|
|
if (idleTimes > 30) {
|
|
|
|
|
|
|
|
if(triggerQueue ==null||triggerQueue.size()==0) {
|
|
|
|
XxlJobExecutor.removeJobThread(jobId, "excutor idel times over limit.");
|
|
|
|
XxlJobExecutor.removeJobThread(jobId, "excutor idel times over limit.");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
} catch (Throwable e) {
|
|
|
|
} catch (Throwable e) {
|
|
|
|
if (toStop) {
|
|
|
|
if (toStop) {
|
|
|
|
XxlJobLogger.log("<br>----------- JobThread toStop, stopReason:" + stopReason);
|
|
|
|
XxlJobLogger.log("<br>----------- JobThread toStop, stopReason:" + stopReason);
|
|
|
|