Package io.kestra.core.models.tasks
Interface ExecutableTask<T extends Output>
- All Known Implementing Classes:
Flow,ForEachItem
public interface ExecutableTask<T extends Output>
Interface for tasks that generates subflow execution(s). Those tasks are handled in the Executor.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptioncreateWorkerTaskExecutions(RunContext runContext, FlowExecutorInterface flowExecutorInterface, Flow currentFlow, Execution currentExecution, TaskRun currentTaskRun) Creates a list of WorkerTaskExecution for this task definition.createWorkerTaskResult(RunContext runContext, TaskRun taskRun, Flow flow, Execution execution) Creates a WorkerTaskResult for a given WorkerTaskExecutionbooleanWhether to wait for the execution(s) of the subflow before terminating this tasks
-
Method Details
-
createWorkerTaskExecutions
List<WorkerTaskExecution<?>> createWorkerTaskExecutions(RunContext runContext, FlowExecutorInterface flowExecutorInterface, Flow currentFlow, Execution currentExecution, TaskRun currentTaskRun) throws InternalException Creates a list of WorkerTaskExecution for this task definition. Each WorkerTaskExecution will generate a subflow execution.- Throws:
InternalException
-
createWorkerTaskResult
Optional<WorkerTaskResult> createWorkerTaskResult(RunContext runContext, TaskRun taskRun, Flow flow, Execution execution) Creates a WorkerTaskResult for a given WorkerTaskExecution -
waitForExecution
boolean waitForExecution()Whether to wait for the execution(s) of the subflow before terminating this tasks -
subflowId
ExecutableTask.SubflowId subflowId()- Returns:
- the subflow identifier, used by the flow topology and related dependency code.
-