Ver código fonte

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

xueli.xue 9 anos atrás
pai
commit
1e7eea1332

+ 1 - 1
xxl-job-admin/src/main/java/com/xxl/job/admin/core/callback/XxlJobLogCallbackServerHandler.java Ver arquivo

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