o-nikolas commented on code in PR #30727:
URL: https://github.com/apache/airflow/pull/30727#discussion_r1181955407
##########
airflow/executors/kubernetes_executor.py:
##########
@@ -702,6 +291,8 @@ def sync(self) -> None:
for _ in range(self.kube_config.worker_pods_creation_batch_size):
try:
task = self.task_queue.get_nowait()
+ from kubernetes.client.rest import ApiException
Review Comment:
Work is only really done in Python on the first import, so it should be
fine. But I'm happy to move it to the top of the for loop if you prefer :+1:
--
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]