workflows
workflows.SubmitSubtasks
Submit multiple subtasks to the task runner. Same as SubmitSubtask, but accepts a list of tasks.
This function is intended to be used in tasks.
Parameters
A list of tasks to submit
Options for the subtasks
Options
WithDependencies(dependencies ...FutureTask)
Set dependencies for the tasks
Set the cluster slug of the cluster where the tasks will be executed.
Set the maximum number of retries for the subtasks in case it fails
Returns
A list of future tasks that can be used to set dependencies between tasks.