jedcunningham commented on code in PR #51410:
URL: https://github.com/apache/airflow/pull/51410#discussion_r2175723758
##########
airflow-core/src/airflow/jobs/scheduler_job_runner.py:
##########
@@ -2037,6 +2056,7 @@ def _get_num_times_stuck_in_queued(self, ti:
TaskInstance, session: Session = NE
Log.map_index == ti.map_index,
Log.try_number == ti.try_number,
Log.event == TASK_STUCK_IN_QUEUED_RESCHEDULE_EVENT,
+ since_running,
Review Comment:
Yep, that refactor is a good suggestion.
The relying of log table bit is the best answer we had to detect this
scenario. We could rework it to do it differently, but that'd be a bigger
undertaking.
--
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]