From b642e9ca546d8ea21bbd9f193ff6ff9729037f75 Mon Sep 17 00:00:00 2001 From: wind Date: Thu, 21 Oct 2021 19:27:13 +0800 Subject: [PATCH] [DS-6582][Master] fix condition task state (#6583) Co-authored-by: caishunfeng <534328519@qq.com> --- .../server/master/runner/task/ConditionTaskProcessor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/runner/task/ConditionTaskProcessor.java b/dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/runner/task/ConditionTaskProcessor.java index 80d8eba1c0..82be3119b0 100644 --- a/dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/runner/task/ConditionTaskProcessor.java +++ b/dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/runner/task/ConditionTaskProcessor.java @@ -90,7 +90,6 @@ public class ConditionTaskProcessor extends BaseTaskProcessor { Thread.currentThread().setName(threadLoggerInfoName); initTaskParameters(); logger.info("dependent task start"); - endTask(); return true; } @@ -103,6 +102,7 @@ public class ConditionTaskProcessor extends BaseTaskProcessor { public void run() { if (conditionResult.equals(DependResult.WAITING)) { setConditionResult(); + endTask(); } else { endTask(); }