jscheffl commented on code in PR #53492:
URL: https://github.com/apache/airflow/pull/53492#discussion_r2252629525


##########
airflow-core/src/airflow/models/taskinstance.py:
##########
@@ -554,6 +559,14 @@ class TaskInstance(Base, LoggingMixin):
         innerjoin=True,
         viewonly=True,
     )
+    pool_model: Pool = relationship(
+        "Pool",
+        primaryjoin="TaskInstance.pool == Pool.pool",
+        foreign_keys=pool,
+        uselist=False,
+        innerjoin=True,

Review Comment:
   Mhm, yeah I remember you get warnigns frmo Dag Parser anyway if the 
mentioned pool is not existing. If this makes ORM query better then it might be 
OK. We might leave a not that it is not made with a FK constraint by intend 
(because most probably we should not add a constraint)



-- 
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]

Reply via email to