<p>We moved our airflow architecture from Celery to Kubernete Executor.</p>
<p>I was using bash command to run next dag when the previous one in main chain was finished with:</p>
<pre><code>my_task_1 = bash.BashOperator(
task_id=&quot;my_task_1&quot;,
dag=dag,
bash_command='airflow dags trigger dag_2_id'
)
</code></pre>
<p>But sadly I cant figure out how to run CLI commands from the inside of Kubernetes.
Thank you in advance for your support.</p>

Pierre Anken
<p>The solution was simply to use TriggerDagRunOperator instead of doing it with some bash commands.</p>
