amoghrajesh commented on code in PR #39296:
URL: https://github.com/apache/airflow/pull/39296#discussion_r1583091919


##########
airflow/providers/cncf/kubernetes/operators/pod.py:
##########
@@ -766,9 +767,15 @@ def _clean(self, event: dict[str, Any]):
         # Skip await_pod_completion when the event is 'timeout' due to the pod 
can hang
         # on the ErrImagePull or ContainerCreating step and it will never 
complete
         if event["status"] != "timeout":
-            self.pod = self.pod_manager.await_pod_completion(
-                self.pod, istio_enabled, self.base_container_name
-            )
+            try:
+                self.pod = self.pod_manager.await_pod_completion(
+                    self.pod, istio_enabled, self.base_container_name
+                )
+            except ApiException as e:
+                if e.status == 404:
+                    self.pod = None

Review Comment:
   Should we do anything specific here? Like add a log 



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