mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-11-29 18:58:05 +08:00
[Bug][Master][Fixes 14216]workflow state keep READY_STOP when sub_process state … (#14221)
* [Bug] [Master] workflow state keep READY_STOP when sub_process state STOP Fixes #14216 * [Bug] [Master] workflow state keep READY_STOP when sub_process state STOP Fixes mvn spotless:apply#14216 * Update testFile.txt.crc * Update testFile.txt.crc * Delete testFile.txt.crc
This commit is contained in:
parent
fdb8fde776
commit
d587b5f03d
@ -1688,8 +1688,10 @@ public class WorkflowExecuteRunnable implements Callable<WorkflowSubmitStatus> {
|
||||
if (state == WorkflowExecutionStatus.READY_STOP) {
|
||||
List<TaskInstance> killList = getCompleteTaskByState(TaskExecutionStatus.KILL);
|
||||
List<TaskInstance> failList = getCompleteTaskByState(TaskExecutionStatus.FAILURE);
|
||||
List<TaskInstance> stopList = getCompleteTaskByState(TaskExecutionStatus.STOP);
|
||||
WorkflowExecutionStatus executionStatus;
|
||||
if (CollectionUtils.isNotEmpty(killList) || CollectionUtils.isNotEmpty(failList) || !isComplementEnd()) {
|
||||
if (CollectionUtils.isNotEmpty(stopList) || CollectionUtils.isNotEmpty(killList)
|
||||
|| CollectionUtils.isNotEmpty(failList) || !isComplementEnd()) {
|
||||
executionStatus = WorkflowExecutionStatus.STOP;
|
||||
} else {
|
||||
executionStatus = WorkflowExecutionStatus.SUCCESS;
|
||||
|
@ -88,8 +88,12 @@ public enum TaskExecutionStatus {
|
||||
return this == TaskExecutionStatus.PAUSE;
|
||||
}
|
||||
|
||||
public boolean isStop() {
|
||||
return this == TaskExecutionStatus.STOP;
|
||||
}
|
||||
|
||||
public boolean isFinished() {
|
||||
return isSuccess() || isKill() || isFailure() || isPause();
|
||||
return isSuccess() || isKill() || isFailure() || isPause() || isStop();
|
||||
}
|
||||
|
||||
public boolean isNeedFaultTolerance() {
|
||||
|
Loading…
Reference in New Issue
Block a user