Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions docsrc/Connecting_and_queries.rst
Original file line number Diff line number Diff line change
Expand Up @@ -626,3 +626,20 @@ You can import this module as follows:

from datetime import datetime

Execution timeout
==============================

The Firebolt Python SDK allows you to set a timeout for query execution.
In order to do this, you can call the :meth:`Cursor.execute` or :meth:`Cursor.executemany` function with the
``timeout_seconds`` parameter provided. In case the timeout will be reached before the query execution finishes, the
function will raise a ``QueryTimeoutError`` exception.

::

cursor.execute(
"SELECT * FROM test_table;",
timeout_seconds=5
)

**Warning**: If running multiple queries, and one of queries times out, all the previous queries will not be rolled back and their result will persist. All the remaining queries will be cancelled.

Loading