From 0bb48f342973663b3466934701eea79aabcec6b3 Mon Sep 17 00:00:00 2001 From: Dyqer Date: Thu, 7 Dec 2023 11:06:10 +0800 Subject: [PATCH] fail-fast for dependent check (#15197) Co-authored-by: Leoric Yue Co-authored-by: caishunfeng --- .../dolphinscheduler/plugin/task/api/utils/DependentUtils.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dolphinscheduler-task-plugin/dolphinscheduler-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/utils/DependentUtils.java b/dolphinscheduler-task-plugin/dolphinscheduler-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/utils/DependentUtils.java index ab2b25b653..78db575ab9 100644 --- a/dolphinscheduler-task-plugin/dolphinscheduler-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/utils/DependentUtils.java +++ b/dolphinscheduler-task-plugin/dolphinscheduler-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/utils/DependentUtils.java @@ -42,8 +42,7 @@ public class DependentUtils { case AND: if (dependResultList.contains(DependResult.FAILED)) { dependResult = DependResult.FAILED; - } - if (dependResultList.contains(DependResult.WAITING)) { + } else if (dependResultList.contains(DependResult.WAITING)) { dependResult = DependResult.WAITING; } break;