BatchQuery#
- class polars_cloud.BatchQuery(query_id: UUID, workspace_id: UUID)
A Polars Cloud batch query.
Note
This object is returned when spawning a new query on a compute cluster running in batch mode. It should not be instantiated directly by the user.
Methods:
get_status
Get the current status of the query.
await_result_async
Await the result of the query asynchronously and return the result.
await_result
Block the current thread until the query is processed and get a result.
cancel
Cancel the execution of the query.
- get_status() QueryStatus
Get the current status of the query.
- async await_result_async(
- *,
- raise_on_failure: bool = True,
Await the result of the query asynchronously and return the result.
- await_result(
- *,
- raise_on_failure: bool = True,
Block the current thread until the query is processed and get a result.
- cancel() None
Cancel the execution of the query.