ashb commented on a change in pull request #17016:
URL: https://github.com/apache/airflow/pull/17016#discussion_r671179106
##########
File path: airflow/models/taskinstance.py
##########
@@ -2142,7 +2152,5 @@ def construct_task_instance(self, session=None,
lock_for_update=False) -> TaskIn
if STATICA_HACK: # pragma: no cover
from airflow.job.base_job import BaseJob
- from airflow.models.dagrun import DagRun
- TaskInstance.dag_run = relationship(DagRun)
Review comment:
The primary reason for having this was to help with code-completion, so
maybe we should keep the relationship on dagrun and change `backref` to
`back_populates` as suggested
--
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]