Refreshing dags without web server restart apache airflow

ryudice picture ryudice · Apr 25, 2017 · Viewed 23.9k times · Source

Is there any way to reload the jobs without having to restart the server?

Answer

x97Core picture x97Core · Jan 1, 2018

In your airflow.cfg, you've these two configurations to control this behavior:

# after how much time a new DAGs should be picked up from the filesystem
min_file_process_interval = 0
dag_dir_list_interval = 60

You might have to reload the web-server, scheduler and workers for your new configuration to take effect.