Airflow “This DAG isnt available in the webserver DagBag object ”

后端 未结 5 1197
天涯浪人
天涯浪人 2020-12-03 00:42

when I put a new DAG python script in the dags folder, I can view a new entry of DAG in the DAG UI but it was not enabled automatically. On top of that, it seems does not lo

5条回答
  •  执念已碎
    2020-12-03 01:11

    The issue is because the DAG by default is put in the DagBag in paused state so that the scheduler is not overwhelmed with lots of backfill activity on start/restart.

    To work around this change the below setting in your airflow.cfg file:

    # Are DAGs paused by default at creation 
    dags_are_paused_at_creation = False
    

    Hope this helps. Cheers!

提交回复
热议问题