def METHOD_NAME(self, predictor_name, timeout=60):
    start = time.time()
    status = None
    while (time.time() - start) < timeout:
        resp = self.sql_via_http('show models', RESPONSE_TYPE.TABLE)
        name_index = [x.lower() for x in resp['column_names']].index('name')
        status_index = [x.lower() for x in resp['column_names']].index('status')
        for row in resp['data']:
            if row[name_index] == predictor_name:
                status = row[status_index]
        if status in ['complete', 'error']:
            break
        time.sleep(1)
    return status