You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Mourad Benabdelkerim (JIRA)" <ji...@apache.org> on 2017/06/14 12:37:00 UTC

[jira] [Created] (AIRFLOW-1306) Create Dag in a class and in a separate module

Mourad Benabdelkerim created AIRFLOW-1306:
---------------------------------------------

             Summary: Create Dag in a class and in a separate module 
                 Key: AIRFLOW-1306
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-1306
             Project: Apache Airflow
          Issue Type: Bug
          Components: DAG
    Affects Versions: Airflow 2.0
            Reporter: Mourad Benabdelkerim


I created a dag in a separate class and in a separate python-model.
In my main_model, I instantiate  the class, I call a method which creates and returns the dag.

So when I run *airflow list_dags*, it won't return the dag.

BUT when I added a comment that contains the word "DAG", the *airflow dag_lists* command returns the dag.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)