Parallel
yaml
type: "io.kestra.core.tasks.flows.Parallel"
Run tasks in parallel.
This task runs all child tasks in parallel.
Examples
yaml
id: parallel
namespace: io.kestra.tests
tasks:
- id: parallel
type: io.kestra.core.tasks.flows.Parallel
tasks:
- id: 1st
type: io.kestra.core.tasks.debugs.Return
format: "{{ task.id }} > {{ taskrun.startDate }}"
- id: 2nd
type: io.kestra.core.tasks.debugs.Return
format: "{{ task.id }} > {{ taskrun.id }}"
- id: last
type: io.kestra.core.tasks.debugs.Return
format: "{{ task.id }} > {{ taskrun.startDate }}"
Properties
concurrent
- Type: integer
- Dynamic: ❌
- Required: ✔️
- Default:
0
Number of concurrent parallel tasks that can be running at any point in time. If the value is
0
, no limit exist and all tasks will start at the same time.
tasks
- Type: array
- SubType: io.kestra.core.models.tasks.Task
- Dynamic: ❌
- Required: ✔️
- Min items:
1
errors
- Type: array
- SubType: io.kestra.core.models.tasks.Task
- Dynamic: ❌
- Required: ❌
List of tasks to run if any tasks failed on this FlowableTask.