fix bug: 5349, work flow would running if task is killed by manual. (#5362)
Co-authored-by: baoliang <baoliang@analysys.com.cn>
This commit is contained in:
parent
3a7006a796
commit
75d1ad645c
|
|
@ -26,6 +26,7 @@ public enum DependResult {
|
|||
* 0 success
|
||||
* 1 waiting
|
||||
* 2 failed
|
||||
* 3 non execution
|
||||
*/
|
||||
SUCCESS, WAITING, FAILED
|
||||
SUCCESS, WAITING, FAILED, NON_EXEC
|
||||
}
|
||||
|
|
|
|||
|
|
@ -617,7 +617,7 @@ public class MasterExecThread implements Runnable {
|
|||
}
|
||||
ExecutionStatus depTaskState = completeTaskList.get(depsNode).getState();
|
||||
if (depTaskState.typeIsPause() || depTaskState.typeIsCancel()) {
|
||||
return DependResult.WAITING;
|
||||
return DependResult.NON_EXEC;
|
||||
}
|
||||
// ignore task state if current task is condition
|
||||
if (taskNode.isConditionsTask()) {
|
||||
|
|
@ -1148,6 +1148,10 @@ public class MasterExecThread implements Runnable {
|
|||
dependFailedTask.put(task.getName(), task);
|
||||
removeTaskFromStandbyList(task);
|
||||
logger.info("task {},id:{} depend result : {}", task.getName(), task.getId(), dependResult);
|
||||
} else if (DependResult.NON_EXEC == dependResult) {
|
||||
// for some reasons(depend task pause/stop) this task would not be submit
|
||||
removeTaskFromStandbyList(task);
|
||||
logger.info("remove task {},id:{} , because depend result : {}", task.getName(), task.getId(), dependResult);
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue