airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pedro M Duarte (JIRA)" <>
Subject [jira] [Created] (AIRFLOW-197) Import SubDagOperator not consistent
Date Tue, 31 May 2016 19:36:13 GMT
Pedro M Duarte created AIRFLOW-197:

             Summary: Import SubDagOperator not consistent
                 Key: AIRFLOW-197
             Project: Apache Airflow
          Issue Type: Bug
          Components: operators
    Affects Versions: Airflow 1.6.2
         Environment: OS X
            Reporter: Pedro M Duarte
            Priority: Trivial

I observe conflicting behavior when doing 

a) `from airflow.operators import SubDagOperator`


b) `from airflow.operators.subdag_operator import SubDagOperator`

In the first case all the subdags that I define via the `SubDagOperator` are correctly handled
by airflow.  For example

$ airflow list_dags

In the second case, the subdag's go unnoticed by airflow: 

$ airflow list_dags

This issue is not a big deal, as I can always stick to option a).  But after looking at the
contents of `operators/` I am having a hard time understanding the observed behavior.

Would really appreciate it if someone could comment on this for clarification. 


This message was sent by Atlassian JIRA

View raw message