dstandish commented on code in PR #47187:
URL: https://github.com/apache/airflow/pull/47187#discussion_r1977941230


##########
providers/cncf/kubernetes/src/airflow/providers/cncf/kubernetes/triggers/pod.py:
##########
@@ -257,6 +259,21 @@ async def _wait_for_container_completion(self) -> 
TriggerEvent:
             self.log.debug("Sleeping for %s seconds.", self.poll_interval)
             await asyncio.sleep(self.poll_interval)
 
+    @tenacity.retry(stop=tenacity.stop_after_attempt(3), 
wait=tenacity.wait_exponential(), reraise=True)
+    async def _get_pod(self) -> V1Pod:
+        """
+        Get the pod from Kubernetes.
+
+        Separate method for retrying. Retry logic here should mimic the retry 
logic in
+        PodManager.read_pod method.
+        """

Review Comment:
   ```suggestion
           """Get the pod from Kubernetes with retries."""
   ```



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