dirrao commented on code in PR #39702:
URL: https://github.com/apache/airflow/pull/39702#discussion_r1606205201


##########
airflow/providers/cncf/kubernetes/operators/pod.py:
##########
@@ -532,11 +532,12 @@ def find_pod(self, namespace: str, context: Context, *, 
exclude_checked: bool =
         ).items
 
         pod = None
-        num_pods = len(pod_list)
+        running_pods = [pod for pod in pod_list if pod.status.phase == 
"Running"]

Review Comment:
   How about the pod which is in pending state? It will result in launching 
another application pod which is not need. 



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