uranusjr commented on code in PR #29929:
URL: https://github.com/apache/airflow/pull/29929#discussion_r1197581881


##########
airflow/executors/kubernetes_executor.py:
##########
@@ -68,6 +72,8 @@
 ALL_NAMESPACES = "ALL_NAMESPACES"
 POD_EXECUTOR_DONE_KEY = "airflow_executor_done"
 
+logs_task_metadata = conf.get("kubernetes_executor", "logs_task_metadata", 
fallback="False") == "True"

Review Comment:
   Right, you want to be able to call this in multiple classes right? Maybe
   
   ```python
   @cache
   def get_logs_task_metadata(self) -> bool:
       return conf.getboolean("kubernetes_executor", "logs_task_metadata", 
fallback=False)
   ```
   
   as a module-level function and call it when needed.



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