EachSequential
EachSequential
yaml
type: "io.kestra.core.tasks.flows.EachSequential"
Execute a task for a list of values sequentially
For each value
, the tasks
list will be executed
The value must be valid json string representing an arrays, like ["value1", "value2"]
or [{"key":"value1"}, {"key":"value2"}]
or an array of valid JSON strings.
The current value is available on the variable null
.
Examples
yaml
id: "each_sequential"
type: "io.kestra.core.tasks.flows.EachSequential"
value: '["value 1", "value 2", "value 3"]'
tasks:
- id: each-value
type: io.kestra.core.tasks.debugs.Return
format: "{{ task.id }} with current value '{{ taskrun.value }}'"
yaml
id: "each_sequential"
type: "io.kestra.core.tasks.flows.EachSequential"
value:
- value 1
- value 2
- value 3
tasks:
- id: each-value
type: io.kestra.core.tasks.debugs.Return
format: "{{ task.id }} with current value '{{ taskrun.value }}'"
Properties
tasks
- Type: array
- SubType: Task
- Dynamic: ❌
- Required: ✔️
- Min items:
1
value
- Type:stringarray
- Dynamic: ✔️
- Required: ✔️
The list of values for this task
The value car be passed as a String, a list of String, or a list of objects
errors
- Type: array
- SubType: Task
- Dynamic: ❌
- Required: ❌
List of tasks to run if any tasks failed on this FlowableTask