andy dreyfuss created AIRFLOW-2232:
--------------------------------------

             Summary: 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


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)

Reply via email to