def METHOD_NAME(
    self, poll_interval: int = 1, disable_progress: Optional[bool] = None
) -> None:
    """
    Wait until this query has finished running.
    Parameters
    ----------
    poll_interval : int, default 1
        Number of seconds to wait between checks for the query being ready
    disable_progress : bool, default None
        Set to True to disable progress bar display entirely, None to disable on
        non-TTY, or False to always enable
    Raises
    ------
    FlowclientConnectionError
        if query is not running or has errored
    """
    if not hasattr(self, "_query_id"):
        raise FileNotFoundError("Query is not running.")
    wait_for_query_to_be_ready(
        connection=self.connection,
        query_id=self._query_id,
        poll_interval=poll_interval,
        disable_progress=disable_progress,
    )