ephraimbuddy commented on code in PR #40867:
URL: https://github.com/apache/airflow/pull/40867#discussion_r1683821442


##########
airflow/jobs/scheduler_job_runner.py:
##########
@@ -1066,6 +1068,14 @@ def _run_scheduler_loop(self) -> None:
                         num_finished_events += self._process_executor_events(
                             executor=executor, session=session
                         )
+
+                for executor in self.job.executors:
+                    try:
+                        with create_session() as session:
+                            
self._process_task_event_logs(executor._task_event_logs, session)

Review Comment:
   Why do we create a new session here instead of using the scheduler session? 
I'm surprised it's not causing issue in the scheduler



-- 
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]

Reply via email to