@property
    def subdags(self):
        # Check SubDag for class but don't check class directly, see
        # https://github.com/airbnb/airflow/issues/1168
        l = []
        for task in self.tasks:
            if (
                    task.__class__.__name__ == 'SubDagOperator' and
                    hasattr(task, 'subdag')):
                l.append(task.subdag)
                l += task.subdag.subdags
        return l
Returns a list of the subdag objects associated to this DAG
dataset/ETHPy150Open airbnb/airflow/airflow/models.py/DAG.subdags