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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]