How do I add a new dag to a running airflow service?

若如初见. 提交于 2019-12-05 18:27:55
Charlie Gelman

Dag updates should be picked up automatically. If they don't get picked up, it's often because the change you made "broke" the dag.

To check that new tasks are in fact picked up, on your webserver, run:

airflow list_tasks <dag_name> --tree

If it says Dag not found, then there's an error.
If it runs successfully, then it should show all your tasks and those tasks should be picked up in your airflow ui when you refresh it.

If the new/updated tasks are not showing up there, then check the dags folder on your webserver and verify that the code is indeed being updated.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!