Browse Source

Merge pull request #1193 from xyyz150/master

许雪里 5 years ago
parent
commit
12ebcfd4fd
No account linked to committer's email
1 changed files with 3 additions and 1 deletions
  1. 3 1
      xxl-job-core/src/main/java/com/xxl/job/core/thread/JobThread.java

+ 3 - 1
xxl-job-core/src/main/java/com/xxl/job/core/thread/JobThread.java View File

@@ -165,7 +165,9 @@ public class JobThread extends Thread{
165 165
 
166 166
 				} else {
167 167
 					if (idleTimes > 30) {
168
-						XxlJobExecutor.removeJobThread(jobId, "excutor idel times over limit.");
168
+						if(triggerQueue ==null||triggerQueue.size()==0) {
169
+							XxlJobExecutor.removeJobThread(jobId, "excutor idel times over limit.");
170
+						}
169 171
 					}
170 172
 				}
171 173
 			} catch (Throwable e) {