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


##########
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:
   There is no direct relation, however what about pool slots? And slots taken 
by a TI? You do need the relation for calculations that allow to avoid 
starvation of pools



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