dzhigimont commented on code in PR #34579:
URL: https://github.com/apache/airflow/pull/34579#discussion_r1339736562
##########
airflow/providers/cncf/kubernetes/operators/pod.py:
##########
@@ -679,7 +679,10 @@ def execute_complete(self, context: Context, event: dict,
**kwargs):
return xcom_sidecar_output
finally:
istio_enabled = self.is_istio_enabled(pod)
- pod = self.pod_manager.await_pod_completion(pod, istio_enabled,
self.base_container_name)
+ # 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":
Review Comment:
I've added the test
--
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]