commit | 6434797a0c1b0aabf7f2e85e6c28f5342ad3160f | [log] [tgz] |
---|---|---|
author | JinYong Li <42576980+JinyLeeChina@users.noreply.github.com> | Thu Feb 02 11:58:29 2023 +0800 |
committer | GitHub <noreply@github.com> | Thu Feb 02 11:58:29 2023 +0800 |
tree | 51f7c2a8eb5c559fd8384dfcf84dbbb84648a418 | |
parent | 10d619924e693830d27f84b4c99a03156d96f745 [diff] |
fix 13496 (#13497) Co-authored-by: JinyLeeChina <jiny.li@foxmail.com>
diff --git a/dolphinscheduler-spi/src/main/java/org/apache/dolphinscheduler/spi/task/TaskExecutionContextCacheManager.java b/dolphinscheduler-spi/src/main/java/org/apache/dolphinscheduler/spi/task/TaskExecutionContextCacheManager.java index aa7c169..2b5df36 100644 --- a/dolphinscheduler-spi/src/main/java/org/apache/dolphinscheduler/spi/task/TaskExecutionContextCacheManager.java +++ b/dolphinscheduler-spi/src/main/java/org/apache/dolphinscheduler/spi/task/TaskExecutionContextCacheManager.java
@@ -74,8 +74,8 @@ public static boolean statusIsStop(Integer taskInstanceId) { TaskRequest taskRequest = taskRequestContextCache.get(taskInstanceId); - if (taskRequest == null) { - return true; + if (taskRequest == null || taskRequest.getCurrentExecutionStatus() == null) { + return false; } return taskRequest.getCurrentExecutionStatus().typeIsStop(); }