Commit 09e474e8 by huangfusuper

实例失败不执行完结回调

parent b26fbfff
...@@ -27,10 +27,6 @@ public class FlowStatusServiceImpl implements FlowStatusService { ...@@ -27,10 +27,6 @@ public class FlowStatusServiceImpl implements FlowStatusService {
return RunRecordingEnum.RUN_FLOW_KILL.getCode(); return RunRecordingEnum.RUN_FLOW_KILL.getCode();
} }
if (RunRecordingEnum.RUN_FLOW_FAILURE.getCode().equals(runRecordingByFlowIdAndRunId.getFlowRunResult())) {
return RunRecordingEnum.RUN_FLOW_FAILURE.getCode();
}
if (RunRecordingEnum.FAIL_FAST_YES.getCode().equals(runRecordingByFlowIdAndRunId.getFailFast())) { if (RunRecordingEnum.FAIL_FAST_YES.getCode().equals(runRecordingByFlowIdAndRunId.getFailFast())) {
return RunRecordingEnum.FAIL_FAST_YES.getCode(); return RunRecordingEnum.FAIL_FAST_YES.getCode();
} }
......
...@@ -3,6 +3,7 @@ package com.byit.thread.helper; ...@@ -3,6 +3,7 @@ package com.byit.thread.helper;
import cn.hutool.core.collection.CollectionUtil; import cn.hutool.core.collection.CollectionUtil;
import com.byit.enums.FlowPropertyEnum; import com.byit.enums.FlowPropertyEnum;
import com.byit.enums.NodeNameEnum; import com.byit.enums.NodeNameEnum;
import com.byit.enums.RunRecordingEnum;
import com.byit.enums.ScheduleTypeEnum; import com.byit.enums.ScheduleTypeEnum;
import com.byit.exceptions.SuperiorNodeRunException; import com.byit.exceptions.SuperiorNodeRunException;
import com.byit.flowservice.NodeVerification; import com.byit.flowservice.NodeVerification;
...@@ -179,9 +180,12 @@ public class JobTaskThreadRunHelper extends BaseThreadRunHelper { ...@@ -179,9 +180,12 @@ public class JobTaskThreadRunHelper extends BaseThreadRunHelper {
*/ */
private void updateRunRecording (Integer flowId, String runId) { private void updateRunRecording (Integer flowId, String runId) {
RunRecording runRecordingByFlowIdAndRunId = runRecordingService.findRunRecordingByFlowIdAndRunId(flowId, runId); RunRecording runRecordingByFlowIdAndRunId = runRecordingService.findRunRecordingByFlowIdAndRunId(flowId, runId);
runRecordingByFlowIdAndRunId.setFlowStatus(FlowPropertyEnum.FLOW_RUN_ING.getCode()); if (!RunRecordingEnum.FAIL_FAST_YES.getCode().equals(runRecordingByFlowIdAndRunId.getFailFast())) {
runRecordingByFlowIdAndRunId.setStartTime(new Date()); runRecordingByFlowIdAndRunId.setFlowStatus(FlowPropertyEnum.FLOW_RUN_ING.getCode());
runRecordingService.updateRunRecordingById(runRecordingByFlowIdAndRunId); runRecordingByFlowIdAndRunId.setStartTime(new Date());
runRecordingService.updateRunRecordingById(runRecordingByFlowIdAndRunId);
}
} }
@Override @Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment