From c9022680214ab80548102f4d1cf12a041635ecb5 Mon Sep 17 00:00:00 2001 From: CalvinKirs Date: Thu, 26 Nov 2020 11:01:34 +0800 Subject: [PATCH] fix task instance status judgment error --- .../server/master/processor/queue/TaskResponseService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/processor/queue/TaskResponseService.java b/dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/processor/queue/TaskResponseService.java index 2678532b99..51ecf454ea 100644 --- a/dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/processor/queue/TaskResponseService.java +++ b/dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/processor/queue/TaskResponseService.java @@ -138,7 +138,7 @@ public class TaskResponseService { case ACK: try { TaskInstance taskInstance = processService.findTaskInstanceById(taskResponseEvent.getTaskInstanceId()); - if (taskInstance != null && ExecutionStatus.SUCCESS.getCode() != taskInstance.getState().getCode()) { + if (taskInstance != null && !taskInstance.getState().typeIsFinished()) { processService.changeTaskState(taskInstance, taskResponseEvent.getState(), taskResponseEvent.getStartTime(), taskResponseEvent.getWorkerAddress(),