milton0825 commented on a change in pull request #5342: [AIRFLOW-4521] Pause
dag not load dagbag
URL: https://github.com/apache/airflow/pull/5342#discussion_r290066099
##########
File path: airflow/models/dag.py
##########
@@ -1519,40 +1519,22 @@ def create_dagrun(self,
conf=conf,
session=session)
- @classmethod
- def _find_dag_ids_including_subdags(cls, dag: DAG):
- from airflow.operators.subdag_operator import SubDagOperator # Avoid
circular imports
- dag_ids = [dag.dag_id]
- for task in dag.tasks:
- if isinstance(task, SubDagOperator):
- subdag = task.subdag
- dag_ids.extend(cls._find_dag_ids_including_subdags(subdag))
- return dag_ids
-
- @classmethod
Review comment:
😄
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services