This is an automated email from the ASF dual-hosted git repository.

caishunfeng pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git


The following commit(s) were added to refs/heads/dev by this push:
     new 0bb48f3429 fail-fast for dependent check (#15197)
0bb48f3429 is described below

commit 0bb48f342973663b3466934701eea79aabcec6b3
Author: Dyqer <[email protected]>
AuthorDate: Thu Dec 7 11:06:10 2023 +0800

    fail-fast for dependent check (#15197)
    
    Co-authored-by: Leoric Yue <[email protected]>
    Co-authored-by: caishunfeng <[email protected]>
---
 .../apache/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;

Reply via email to