How to create dependency between dynamically created tasks in Airflow
<p>I am creating dynamic tasks using the below code. I want to create dependency on these dynamically created tasks. For e.g, runStep_0 should be dependent on runStep_1 etc.</p>

<pre><code>for i in range(4):

 task = BashOperator(
     task_id='runstep_' + str(i),
     bash_command=cmd
     dag=dag)
</code></pre>