How to remove default example dags in airflow

前端 未结 5 750
青春惊慌失措
青春惊慌失措 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:35

    Before you start airflow make sure you set load_example variable to False in airflow.cfg file. By default it is set to True.

    load_examples = False
    

    If you have already started airflow, you have to manually delete example DAG from the airflow UI. Click on delete icon available on the right side of the DAG to delete it.

    Instead of manually deleting example DAG, you can reset your database by using airflow resetdb command but that will delete your connections and variables and other important information. Do not use airflow resetdb option in production.

提交回复
热议问题