def is_retriable_error(error):
    """Returns true if the error is retriable (e.g server is not ready yet)."""
    msg = str(error)
    return 'Please retry' in msg or 'opIndexing is already running' in msg