|
@@ -4,7 +4,6 @@ import com.xxl.job.core.handler.IJobHandler;
|
4
|
4
|
import com.xxl.job.core.handler.IJobHandler.JobHandleStatus;
|
5
|
5
|
import com.xxl.job.core.log.XxlJobFileAppender;
|
6
|
6
|
import com.xxl.job.core.router.model.RequestModel;
|
7
|
|
-import com.xxl.job.core.util.XxlJobNetCommUtil;
|
8
|
7
|
import org.eclipse.jetty.util.ConcurrentHashSet;
|
9
|
8
|
import org.slf4j.Logger;
|
10
|
9
|
import org.slf4j.LoggerFactory;
|
|
@@ -88,7 +87,7 @@ public class JobThread extends Thread{
|
88
|
87
|
e.printStackTrace(new PrintWriter(out));
|
89
|
88
|
_msg = out.toString();
|
90
|
89
|
}
|
91
|
|
- logger.info("----------- xxl-job job handle end ----------- <br>: ExecutorParams:{}, Status:{}, Msg:{}",
|
|
90
|
+ logger.info("----------- xxl-job job handle end ----------- <br> Look : ExecutorParams:{}, Status:{}, Msg:{}",
|
92
|
91
|
new Object[]{handlerParams, _status, _msg});
|
93
|
92
|
|
94
|
93
|
// callback handler info
|
|
@@ -100,7 +99,7 @@ public class JobThread extends Thread{
|
100
|
99
|
} else {
|
101
|
100
|
// is killed
|
102
|
101
|
triggerDate.setStatus(JobHandleStatus.FAIL.name());
|
103
|
|
- triggerDate.setMsg(stopReason + "人工手动终止[业务运行中,被强制终止]");
|
|
102
|
+ triggerDate.setMsg(stopReason + " [业务运行中,被强制终止]");
|
104
|
103
|
TriggerCallbackThread.pushCallBack(triggerDate);
|
105
|
104
|
}
|
106
|
105
|
}
|
|
@@ -114,12 +113,9 @@ public class JobThread extends Thread{
|
114
|
113
|
RequestModel triggerDate = triggerQueue.poll();
|
115
|
114
|
if (triggerDate!=null) {
|
116
|
115
|
// is killed
|
117
|
|
- RequestModel callback = new RequestModel();
|
118
|
|
- callback.setLogAddress(XxlJobNetCommUtil.addressToUrl(triggerDate.getLogAddress()));
|
119
|
|
- callback.setLogId(triggerDate.getLogId());
|
120
|
|
- callback.setStatus(JobHandleStatus.FAIL.name());
|
121
|
|
- callback.setMsg(stopReason + "[任务尚未执行,在调度队列中被终止]");
|
122
|
|
- TriggerCallbackThread.pushCallBack(callback);
|
|
116
|
+ triggerDate.setStatus(JobHandleStatus.FAIL.name());
|
|
117
|
+ triggerDate.setMsg(stopReason + " [任务尚未执行,在调度队列中被终止]");
|
|
118
|
+ TriggerCallbackThread.pushCallBack(triggerDate);
|
123
|
119
|
}
|
124
|
120
|
}
|
125
|
121
|
|