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)

Reply via email to