2017-04-25 107 views

回答

0

當你更新關聯的python文件時,應該重新加載Dags。

如果不是,先嚐試一下,看起來像一個回收標誌的按鈕手動刷新他們在UI:

airflow ui refresh button

如果不工作,刪除所有pyc文件在dags文件夾中。

通常,當我保存python文件時,dag會在幾分鐘內得到更新。

0

在你airflow.cfg,你這兩個配置來控制此行爲:

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

您可能需要重新加載web服務器,調度程序和工作人員爲您的新配置生效。