[ https://issues.apache.org/jira/browse/AIRFLOW-2232?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joy Gao resolved AIRFLOW-2232. ------------------------------ Resolution: Duplicate Closing since it's a dupe. > DAG must be imported for airflow dag discovery > ---------------------------------------------- > > Key: AIRFLOW-2232 > URL: https://issues.apache.org/jira/browse/AIRFLOW-2232 > Project: Apache Airflow > Issue Type: Bug > Components: DAG > Reporter: andy dreyfuss > Priority: Critical > > repro: put the following in the dags/ directory > ----------------------------- > from my_dags import MyDag > d = MyDag() . # this is an airflow.DAG > ````````````````````````````` > > Expected: airflow list_dags lists the dag > Actual: airflow does not list the dag unless an unused `from airflow import > DAG` is added -- This message was sent by Atlassian JIRA (v7.6.3#76005)