airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pedro M Duarte (JIRA)" <j...@apache.org>
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
                 URL: https://issues.apache.org/jira/browse/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`

or 

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
...
test_emailsubdag
test_emailsubdag.email
...
```

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

```
$ airflow list_dags
...
test_emailsubdag
...
```

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

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

Thanks!



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message