dstandish commented on code in PR #45914:
URL: https://github.com/apache/airflow/pull/45914#discussion_r2069475437


##########
airflow/jobs/scheduler_job_runner.py:
##########
@@ -872,16 +872,17 @@ def _process_executor_events(self, executor: 
BaseExecutor, session: Session) ->
 
                     task_log_reader = TaskLogReader()
                     if task_log_reader.supports_read:
-                        metadata: dict[str, Any] = {}
-                        logs, metadata = task_log_reader.read_log_chunks(ti, 
ti.try_number, metadata)
-                        if ti.hostname in dict(logs[0]):
-                            message = 
str(dict(logs[0])[ti.hostname]).replace("\\n", "\n")
+                        hosts, log_streams, metadata = 
task_log_reader.read_log_chunks(
+                            ti, ti.try_number, None
+                        )
+                        if ti.hostname in hosts:
+                            message = str(next(iter(log_streams[0])))
                             while metadata["end_of_log"] is False:
-                                logs, metadata = 
task_log_reader.read_log_chunks(
+                                hosts, log_streams, metadata = 
task_log_reader.read_log_chunks(

Review Comment:
   @kaxil it seems he is intending this to go to 3.0 only
   https://github.com/apache/airflow/pull/45914#issuecomment-2838886473
   



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