henry3260 commented on code in PR #59525:
URL: https://github.com/apache/airflow/pull/59525#discussion_r2624507899
##########
airflow-core/src/airflow/jobs/scheduler_job_runner.py:
##########
@@ -2430,7 +2424,7 @@ def _get_num_times_stuck_in_queued(self, ti:
TaskInstance, session: Session = NE
.limit(1)
)
- query = session.query(Log).where(
+ stmt = select(func.count()).select_from(Log).where(
Review Comment:
This change looks unrelated to this PR.
##########
airflow-core/src/airflow/jobs/scheduler_job_runner.py:
##########
@@ -2440,51 +2434,41 @@ def _get_num_times_stuck_in_queued(self, ti:
TaskInstance, session: Session = NE
)
if last_running_time is not None:
- query = query.where(Log.dttm > last_running_time)
+ stmt = stmt.where(Log.dttm > last_running_time)
Review Comment:
same
--
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]