You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "jedcunningham (via GitHub)" <gi...@apache.org> on 2025/06/04 23:23:55 UTC
Re: [PR] Correctly treat requeues on reschedule sensors as resetting after each reschedule [airflow]
jedcunningham commented on code in PR #51410:
URL: https://github.com/apache/airflow/pull/51410#discussion_r2127585020
##########
airflow-core/src/airflow/jobs/scheduler_job_runner.py:
##########
@@ -2019,6 +2019,24 @@ def _get_num_times_stuck_in_queued(self, ti: TaskInstance, session: Session = NE
We can then use this information to determine whether to reschedule a task or fail it.
"""
+ last_running_time = session.scalar(
+ select(Log.dttm)
+ .where(
+ Log.dag_id == ti.dag_id,
Review Comment:
```suggestion
Log.dag_id == ti.dag_id,
Log.task_id == ti.task_id,
```
Missing task_id?
--
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