You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "ashb (via GitHub)" <gi...@apache.org> on 2026/08/13 16:50:23 UTC

Re: [PR] Fix stale upstream_failed propagation after external task state changes [airflow]

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


##########
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:
   How is trigger timeout related to upstream_failed? This seems like an unrelated change to the issue described in the 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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org