Access parent dag context at subtag creation time in airflow?
问题 I'm trying to access at subdag creation time some xcom data from parent dag, I was searching to achieve this on internet but I didn't find something. def test(task_id): logging.info(f' execution of task {task_id}') def load_subdag(parent_dag_id, child_dag_id, args): dag_subdag = DAG( dag_id='{0}.{1}'.format(parent_dag_id, child_dag_id), default_args=args, schedule_interval="@daily", ) with dag_subdag: r = DummyOperator(task_id='random') for i in range(r.xcom_pull(task_ids='take_Ana', key='the