In my case, i write a dag file under the dags path. After start the airflow scheduler, it successfully loads the dag file. However, it fialed to load dag file after changing dag file. Is there any suggestion to loade dag file without restart scheduler?
Asked
Active
Viewed 4,866 times
2
-
Can you clarify on failing to load dag file? The heartbeat should be able to identify the changes and update your dag. If you want to see the update of code in UI, make sure to click refresh as well. – Chengzhi Sep 26 '17 at 14:16
1 Answers
4
Your DAG should be automatically reloaded on the scheduler heartbeat and this will always be done before a DagRun is started.
It can take a while before changes in the DAG are also shown in the web interface, you can manually reload the Dag in the UI by pressing the refresh button in the top right of the Dag view

Matthijs Brouns
- 2,299
- 1
- 27
- 37
-
Thank you, Brouns! I have tested some cases, it worked as you just said. – marvin Sep 28 '17 at 00:15