o-nikolas commented on code in PR #69299:
URL: https://github.com/apache/airflow/pull/69299#discussion_r3531460645


##########
airflow-core/src/airflow/executors/base_executor.py:
##########
@@ -559,6 +561,19 @@ def get_task_log(self, ti: TaskInstance, try_number: int) 
-> tuple[list[str], li
         """
         return [], []
 
+    def get_streaming_task_log(self, ti: TaskInstance, try_number: int) -> 
StreamingLogResponse:
+        """
+        Return a streaming response for task logs.
+
+        Executors that implement this method must also set the 
``supports_streaming_logs`` class
+        attribute to ``True``.

Review Comment:
   You could also just try to call this method and catch `NotImplementedError` 
and then fallback to the non-streaming method. Instead of adding a new 
supports_attribute, since in this case it's directly measurable if support 
exists.



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