michaelmicheal commented on code in PR #22092:
URL: https://github.com/apache/airflow/pull/22092#discussion_r888466544


##########
airflow/providers/cncf/kubernetes/operators/kubernetes_pod.py:
##########
@@ -428,16 +430,18 @@ def cleanup(self, pod: k8s.V1Pod, remote_pod: k8s.V1Pod):
                 with _suppress(Exception):
                     for event in self.pod_manager.read_pod_events(pod).items:
                         self.log.error("Pod Event: %s - %s", event.reason, 
event.message)
-            with _suppress(Exception):
-                self.process_pod_deletion(pod)
+            if remote_pod is not None:

Review Comment:
   Is it fair to assume that that if the `pod find` fails then the pod doesn’t 
exist and we don’t need to delete it?



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