Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
----------
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.")
await wait_for_query_to_be_ready(
connection=self.connection,
query_id=self._query_id,
poll_interval=poll_interval,
disable_progress=disable_progress,
)