amoghrajesh commented on code in PR #39296:
URL: https://github.com/apache/airflow/pull/39296#discussion_r1585874551
##########
airflow/providers/cncf/kubernetes/operators/pod.py:
##########
@@ -766,9 +767,18 @@ 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
+ self.log.info(
Review Comment:
Make this warn
--
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]