Package io.kestra.core.models.tasks
Interface FlowableTask<T extends Output>
- All Known Implementing Classes:
AllowFailure,Dag,EachParallel,EachSequential,If,Parallel,Pause,Sequential,Switch,Template,Template.ExecutorTemplate,Worker,WorkingDirectory
public interface FlowableTask<T extends Output>
Interface for tasks that orchestrate other tasks. Those tasks are handled by the Executor.
-
Method Summary
Modifier and TypeMethodDescriptionchildTasks(RunContext runContext, TaskRun parentTaskRun) Resolve child tasks of a flowable task.default Toutputs(RunContext runContext, Execution execution, TaskRun parentTaskRun) resolveNexts(RunContext runContext, Execution execution, TaskRun parentTaskRun) Resolve next tasks to run for an execution.default Optional<State.Type>resolveState(RunContext runContext, Execution execution, TaskRun parentTaskRun) Resolve the state of a flowable task.Create the topology representation of a flowable task.
-
Method Details
-
getErrors
-
tasksTree
GraphCluster tasksTree(Execution execution, TaskRun taskRun, List<String> parentValues) throws IllegalVariableEvaluationException Create the topology representation of a flowable task.A flowable task always contains subtask to it returns a cluster that displays the subtasks.
-
allChildTasks
- Returns:
- all child tasks including errors
-
childTasks
List<ResolvedTask> childTasks(RunContext runContext, TaskRun parentTaskRun) throws IllegalVariableEvaluationException Resolve child tasks of a flowable task.For a normal flowable, it should be the list of its tasks, for an iterative flowable (such as EachSequential, ForEachItem, ...), it should be the list of its tasks for all iterations.
-
resolveNexts
List<NextTaskRun> resolveNexts(RunContext runContext, Execution execution, TaskRun parentTaskRun) throws IllegalVariableEvaluationException Resolve next tasks to run for an execution.For a normal flowable, it should be the subsequent task, for a parallel flowable (such as Parallel, ForEachItem, ...), it should be a list of the next subsequent tasks of the size of the concurrency of the task.
-
resolveState
default Optional<State.Type> resolveState(RunContext runContext, Execution execution, TaskRun parentTaskRun) throws IllegalVariableEvaluationException Resolve the state of a flowable task. -
outputs
default T outputs(RunContext runContext, Execution execution, TaskRun parentTaskRun) throws IllegalVariableEvaluationException
-