def wait_task(self, task_id, time_before_retry=100):
        path = '/task/%d' % task_id
        while True:
            res = self._perform_request(self.read_hosts, path, 'GET')
            if res['status'] == 'published':
                return res
            time.sleep(time_before_retry / 1000.0)
Wait the publication of a task on the server.
dataset/ETHPy150Open algolia/algoliasearch-client-python/algoliasearch/index.py/Index.wait_task