You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Christopher Fei (JIRA)" <ji...@apache.org> on 2018/03/21 01:43:00 UTC
[jira] [Commented] (AIRFLOW-2232) DAG must be imported for airflow
dag discovery
[ https://issues.apache.org/jira/browse/AIRFLOW-2232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16407318#comment-16407318 ]
Christopher Fei commented on AIRFLOW-2232:
------------------------------------------
I believe this is a duplicate of https://issues.apache.org/jira/browse/AIRFLOW-97 and https://issues.apache.org/jira/browse/AIRFLOW-2198.
> 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)