Say I have this snippet of an example DAG:
variables = ['first', 'second', 'third']
def run_dag_task(variable):
task = dag_task(variable)
return task
for variable in variables:
run_dag_task(variable)
This code would run the three tasks for the three variables in parallel. Now, say I want the first task to finish before commencing the second task, and to finish the second task before commencing the third task. How would I go about doing this with a loop? Is that possible?