type: loop_sequential
Runs a set of nested tasks once for each value in values.
values are accessed within the tasks of the loop_sequential task as
<name>.value, where <name> is the name of the task. A sample partial config
is shown below:
Seeding values with query results
The values can be seeded with the output from a previous execute_sql step,
as follows:
Formatting loop outputs
Loops are often combined with thetype: formatter
task, which can loop through the resulting outputs and form them into a single
string. The output from a loop_sequential is an array of dictionaries for each
value, where the keys for each element of each dictionary are named according
to the task’s name field. These can be accessed with Jinja by looping through
the {{ <loop_name> }} variable ({{ loop_through_animals }} above).
An example of this behavior is shown below:
Concurrency
Concurrency can be added to the loop by using theconcurrency key, with the
value specifying the number of concurrent threads to use.
Next steps
Task types
The tasks you run inside a loop
Variables
Parameterize an Automation