diff --git a/dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java b/dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java index 1f48821321..49c64bea48 100644 --- a/dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java +++ b/dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java @@ -1264,7 +1264,8 @@ public class ProcessService { List taskInstances = this.findValidTaskListByProcessId(taskInstance.getProcessInstanceId()); for (TaskInstance task : taskInstances) { - if (task.getState() == ExecutionStatus.FAILURE) { + if (task.getState() == ExecutionStatus.FAILURE + && task.getRetryTimes() >= task.getMaxRetryTimes()) { return false; } }