uranusjr commented on code in PR #32474:
URL: https://github.com/apache/airflow/pull/32474#discussion_r1260499377
##########
airflow/models/renderedtifields.py:
##########
@@ -236,14 +232,15 @@ def _do_delete_old_records(
session: Session,
) -> None:
# This query might deadlock occasionally and it should be retried if
fails (see decorator)
+ # breakpoint()
stmt = (
delete(cls)
.where(
cls.dag_id == dag_id,
cls.task_id == task_id,
tuple_not_in_condition(
(cls.dag_id, cls.task_id, cls.run_id),
- session.query(ti_clause.c.dag_id, ti_clause.c.task_id,
ti_clause.c.run_id),
+ select(ti_clause.c.dag_id, ti_clause.c.task_id,
ti_clause.c.run_id),
Review Comment:
I figured this out, will push to this branch
--
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]