Browse Source

【BUG-5328】 modify process contain depend task is always running (#5344)

Co-authored-by: wanghong1314 <wanghong1@onething.net>
pull/3/MERGE
wanghong1314 4 years ago committed by GitHub
parent
commit
e12a26289b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java

3
dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java

@ -1264,7 +1264,8 @@ public class ProcessService {
List<TaskInstance> taskInstances = this.findValidTaskListByProcessId(taskInstance.getProcessInstanceId()); List<TaskInstance> taskInstances = this.findValidTaskListByProcessId(taskInstance.getProcessInstanceId());
for (TaskInstance task : taskInstances) { for (TaskInstance task : taskInstances) {
if (task.getState() == ExecutionStatus.FAILURE) { if (task.getState() == ExecutionStatus.FAILURE
&& task.getRetryTimes() >= task.getMaxRetryTimes()) {
return false; return false;
} }
} }

Loading…
Cancel
Save