uranusjr commented on code in PR #54103:
URL: https://github.com/apache/airflow/pull/54103#discussion_r2555010941
##########
airflow-core/src/airflow/jobs/scheduler_job_runner.py:
##########
@@ -515,6 +588,12 @@ def _executable_task_instances_to_queued(self, max_tis:
int, session: Session) -
locked_query = with_row_locks(query, of=TI, session=session,
skip_locked=True)
task_instances_to_examine: list[TI] =
list(session.scalars(locked_query).all())
Review Comment:
```suggestion
task_instances_to_examine =
session.scalars(locked_query).all()
```
Not really related, but let’s fix this potentially wasteful line
--
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]