paramjeet01 commented on code in PR #39702:
URL: https://github.com/apache/airflow/pull/39702#discussion_r1606269684
##########
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:
Initial commit , I have set `find_pod` block after `await_pod_start` so
we'll have only running pods but removed it later as recently introduced
callbacks uses `remote_pod` for `on_pod_creation` in `execute_sync`. Now , I
have added support for pending pods.
--
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]