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