Skip to content

Commit 6434797

Browse files
brave-leeJinyLeeChina
and
JinyLeeChina
authored
fix 13496 (#13497)
Co-authored-by: JinyLeeChina <[email protected]>
1 parent 10d6199 commit 6434797

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: dolphinscheduler-spi/src/main/java/org/apache/dolphinscheduler/spi/task/TaskExecutionContextCacheManager.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ public static Collection<TaskRequest> getAllTaskRequestList() {
7474

7575
public static boolean statusIsStop(Integer taskInstanceId) {
7676
TaskRequest taskRequest = taskRequestContextCache.get(taskInstanceId);
77-
if (taskRequest == null) {
78-
return true;
77+
if (taskRequest == null || taskRequest.getCurrentExecutionStatus() == null) {
78+
return false;
7979
}
8080
return taskRequest.getCurrentExecutionStatus().typeIsStop();
8181
}

0 commit comments

Comments
 (0)