Good Morning.
I\'m trying to setup a DAG too
Set schedule_interval=None
and use airflow trigger_dag
command from BashOperator
to launch next execution at the completion of the previous one.
trigger_next = BashOperator(task_id="trigger_next",
bash_command="airflow trigger_dag 'your_dag_id'", dag=dag)
sensor_task >> proccess_task >> archive_task >> trigger_next
You can start your first run manually with the same airflow trigger_dag
command and then trigger_next
task will automatically trigger the next one. We use this in production for many months now and and it runs perfectly.