ashb commented on code in PR #69169:
URL: https://github.com/apache/airflow/pull/69169#discussion_r3783132582


##########
airflow-core/src/airflow/jobs/scheduler_job_runner.py:
##########
@@ -3389,25 +3392,45 @@ def check_trigger_timeouts(
         self, max_retries: int = MAX_DB_RETRIES, *, session: Session = 
NEW_SESSION
     ) -> None:
         """Mark any "deferred" task as failed if the trigger or execution 
timeout has passed."""
-        for attempt in run_with_db_retries(max_retries, logger=self.log):
-            with attempt:
-                result = session.execute(
-                    update(TI)
-                    .where(
-                        TI.state == TaskInstanceState.DEFERRED,
-                        TI.trigger_timeout < timezone.utcnow(),
+        while True:

Review Comment:
   As with #65924 this has no business in this PR. 
   
   



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