Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check name of SubDag class instead of class itself
`airflow.operators.SubDagOperator` and `airflow.operators.subdag_operator.SubDagOperator` are NOT the same. Airflow needs to check against both classes to determine if a task is in fact a SubDagOperator. This is because of Airflow's import machinery. It is *probably* ok to check both classes with `isinstance()` but the behavior is surprising and to cover our bases we check for __class__.__name__ and a `subdag` attr. closes #1168
- Loading branch information