mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-11-29 18:58:05 +08:00
[Bug-14378][Master] Trigger task execution in workflow instance page cause workflow instance keep running status (#14389)
This commit is contained in:
parent
5cbe170e43
commit
64e5741063
@ -2208,14 +2208,14 @@ public class WorkflowExecuteRunnable implements Callable<WorkflowSubmitStatus> {
|
||||
|
||||
// remove task instance from taskInstanceMap, completeTaskSet, validTaskMap, errorTaskMap
|
||||
// completeTaskSet remove dependency taskInstanceMap, so the sort can't change
|
||||
completeTaskSet.removeIf(set -> {
|
||||
Optional<TaskInstance> existTaskInstanceOptional = getTaskInstance(set);
|
||||
completeTaskSet.removeIf(taskCode -> {
|
||||
Optional<TaskInstance> existTaskInstanceOptional = getTaskInstance(taskCode);
|
||||
return existTaskInstanceOptional
|
||||
.filter(taskInstance -> dag.containsNode(Integer.toString(taskInstance.getId()))).isPresent();
|
||||
.filter(taskInstance -> dag.containsNode(Long.toString(taskInstance.getTaskCode()))).isPresent();
|
||||
});
|
||||
taskInstanceMap.entrySet().removeIf(map -> dag.containsNode(Long.toString(map.getValue().getTaskCode())));
|
||||
validTaskMap.entrySet().removeIf(map -> dag.containsNode(Long.toString(map.getKey())));
|
||||
errorTaskMap.entrySet().removeIf(map -> dag.containsNode(Long.toString(map.getKey())));
|
||||
taskInstanceMap.entrySet().removeIf(entry -> dag.containsNode(Long.toString(entry.getValue().getTaskCode())));
|
||||
validTaskMap.entrySet().removeIf(entry -> dag.containsNode(Long.toString(entry.getKey())));
|
||||
errorTaskMap.entrySet().removeIf(entry -> dag.containsNode(Long.toString(entry.getKey())));
|
||||
}
|
||||
|
||||
private void saveCacheTaskInstance(TaskInstance taskInstance) {
|
||||
|
Loading…
Reference in New Issue
Block a user