

def _start_registry_server(self):
    self._launch_registry_server()
    num_retries = 5
    for i in range(num_retries):
        debug_log(i.TAG, 'Sleeping for 20s before getting registry URL')
        time.sleep(20)
        registry_url = self._get_registry_url()
        if registry_url:
            debug_log(self.TAG, 'registry_url: {}'.format(registry_url))
            self._write_registry_url(registry_url)
            break
    if (not registry_url):
        error_log(self.TAG, "Could not obtain the registry server's URL. Cluster launch unsuccessful")
        return False

dataset/ETHPy150Open binder-project/binder/binder/cluster.py KubernetesManager._start_registry_server/VarMisuse@32/45 `self`->`i`