You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "andy dreyfuss (JIRA)" <ji...@apache.org> on 2018/03/21 00:24:00 UTC

[jira] [Created] (AIRFLOW-2232) DAG must be imported for airflow dag discovery

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)