[Fix-16813] Missing implememts in isTaskExecutionRunnableForbidden (#16814)

This commit is contained in:
lile 2024-11-18 19:20:11 +08:00 committed by GitHub
parent f3b5d1f57d
commit 8340f3f803
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -17,6 +17,7 @@
package org.apache.dolphinscheduler.server.master.engine.graph;
import org.apache.dolphinscheduler.common.enums.Flag;
import org.apache.dolphinscheduler.dao.entity.TaskInstance;
import org.apache.dolphinscheduler.plugin.task.api.enums.TaskExecutionStatus;
import org.apache.dolphinscheduler.plugin.task.api.utils.TaskTypeUtils;
@ -252,7 +253,7 @@ public class WorkflowExecutionGraph implements IWorkflowExecutionGraph {
@Override
public boolean isTaskExecutionRunnableForbidden(final ITaskExecutionRunnable taskExecutionRunnable) {
return false;
return (taskExecutionRunnable.getTaskDefinition().getFlag() == Flag.NO);
}
/**