RishabhBajaj97 commented on code in PR #74651:
URL: https://github.com/apache/airflow/pull/74651#discussion_r4262855817


##########
airflow-core/src/airflow/models/trigger.py:
##########
@@ -242,13 +244,21 @@ def clean_unused(cls, *, session: Session = NEW_SESSION) 
-> None:
         # Update all task instances with trigger IDs that are not DEFERRED to 
remove them
         for attempt in run_with_db_retries():
             with attempt:
-                session.execute(
-                    update(TaskInstance)
-                    .where(
-                        TaskInstance.state != TaskInstanceState.DEFERRED, 
TaskInstance.trigger_id.is_not(None)
+                try:

Review Comment:
   this looks like a duplicate of the PR I had raised earlier for the issue, 
can you please close this?



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