Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async def status(self) -> str:
"""
Status of this query.
Returns
-------
str
One of:
- "not_running"
- "queued"
- "executing"
- "completed"
"""
if not hasattr(self, "_query_id"):
return "not_running"
return await get_status(connection=self.connection, query_id=self._query_id)