How to remove default example dags in airflow

前端 未结 5 755
青春惊慌失措
青春惊慌失措 2020-12-13 02:05

I am a new user of Airbnb\'s open source workflow/datapipeline software airflow. There are dozens of default example dags after the web UI is started. I tried many ways to

5条回答
  •  青春惊慌失措
    2020-12-13 02:28

    Like others have said, you can change load_examples = False within airflow.cfg. However this requires that the cfg file already existing.

    You can init the airflow DB without having to configure the cfg file by using ENV variables.

    export AIRFLOW__CORE__LOAD_EXAMPLES=False
    airflow initdb
    

    See docs for more information.

提交回复
热议问题