def get_single_pod(self, retries: int = POD_WAIT_RETRIES, wait: int = POD_WAIT_RETRIES_SECONDS) -> RobustaPod:
        """
        like get_pods() but verifies that only one pod is associated with the job and returns that pod
        if no pods, retry X times with Y seconds wait
        """
        pods = self.get_pods()
        while retries > 0 and len(pods) == 0:
            time.sleep(wait)
            pods = self.get_pods()
            retries -= 1

        if len(pods) != 1:
            raise Exception(f"got {len(pods)} pods. expected 1 for job {self.metadata.name}: {pods}")
        return pods[0]

        like get_pods() but verifies that only one pod is associated with the job and returns that pod
        if no pods, retry X times with Y seconds wait
        
src/robusta/integrations/kubernetes/custom_models.py