Asquator commented on code in PR #53492:
URL: https://github.com/apache/airflow/pull/53492#discussion_r2250153533
##########
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:
Another direction is having consistency checks performed outside the
scheduler by an "SRE checker" or something alike (can it be a scheduled DAG? :D
)
From another perspective, it would be great to implement option 2 with an
optimistic where clause we have now, but some persistence across iterations,
such that inconsistent tasks are "punished" and not getting into the batch
again.
--
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]