Parameters
Sequence[Task]
The tasks to submit as subtasks.
FutureTask | list[FutureTask] | None
An optional task or list of tasks already submitted within the same context that the subtasks depend on.
str
An optional cluster slug for running the subtasks. If not provided, the subtasks run on the same cluster as the parent task.
bool
Whether the subtasks are optional. If
True, the subtasks will not fail the job if they fail. Tasks that depend on them will still execute even if they failed. The default is False.Returns
A list ofFutureTask objects representing the submitted subtasks. Can be used to set up dependencies between tasks.