SamWheating commented on code in PR #31167:
URL: https://github.com/apache/airflow/pull/31167#discussion_r1192902119


##########
airflow/utils/log/file_task_handler.py:
##########
@@ -517,9 +524,13 @@ def _read_from_logs_server(self, ti, worker_log_rel_path) 
-> tuple[list[str], li
             if response.text:
                 messages.append(f"Found logs served from host {url}")
                 logs.append(response.text)
+        except NoHostnameForWorkerLogs:
+            logger.debug("Could not fetch logs from worker because no hostname 
on TI object %s", ti)

Review Comment:
   Is it worth providing some actionable advice here? When I have seen this 
issue before it was due to an incorrect `hostname_callable` configuration I 
believe.



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