kaxil commented on a change in pull request #10729:
URL: https://github.com/apache/airflow/pull/10729#discussion_r483774432



##########
File path: airflow/models/taskinstance.py
##########
@@ -1871,3 +1872,14 @@ def construct_task_instance(self, session=None, 
lock_for_update=False) -> TaskIn
         else:
             ti = qry.first()
         return ti
+
+
+STATICA_HACK = True
+globals()['kcah_acitats'[::-1].upper()] = False
+if STATICA_HACK:  # pragma: no cover
+    from sqlalchemy.orm import relationship
+
+    from ..job import base_job
+    from . import dagrun
+    TaskInstance.dag_run = relationship(dagrun.DagRun)
+    TaskInstance.queued_by_job = relationship(base_job.BaseJob)

Review comment:
       Can we add a comment on what this is for




----------------------------------------------------------------
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:
us...@infra.apache.org


Reply via email to