ashb commented on a change in pull request #16860:
URL: https://github.com/apache/airflow/pull/16860#discussion_r665513573
##########
File path: airflow/models/dag.py
##########
@@ -2379,6 +2413,8 @@ class DagModel(Base):
Index('idx_next_dagrun_create_after', next_dagrun_create_after,
unique=False),
)
+ parent_dag = relationship("DagModel", remote_side=[dag_id])
Review comment:
This relationship was added for "Duck-type compatibility" between a DAG
and a DagModel in the case of subdags -- both now have a "parent_dag" attribute.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]