任务执行回调,SUCCESS状态才会触发子任务fix

This commit is contained in:
xueli.xue 2016-08-03 18:39:38 +08:00
parent cbeaf5a4f8
commit 1e7eea1332
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ public class XxlJobLogCallbackServerHandler extends AbstractHandler {
// trigger success, to trigger child job, and avoid repeat trigger child job
String childTriggerMsg = null;
if (!ResponseModel.SUCCESS.equals(log.getHandleStatus())) {
if (ResponseModel.SUCCESS.equals(requestModel.getStatus()) && !ResponseModel.SUCCESS.equals(log.getHandleStatus())) {
XxlJobInfo xxlJobInfo = DynamicSchedulerUtil.xxlJobInfoDao.load(log.getJobGroup(), log.getJobName());
if (xxlJobInfo!=null && StringUtils.isNotBlank(xxlJobInfo.getChildJobKey())) {
childTriggerMsg = "<hr>";