Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
9 changes: 5 additions & 4 deletions src/neo4j/_async/work/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,14 +468,15 @@ async def begin_transaction(
the transaction timeout in seconds.
Transactions that execute longer than the configured timeout will
be terminated by the database.
This functionality allows to limit query/transaction execution
time.
This functionality allows user code to limit query/transaction
execution time.
The Specified timeout overrides the default timeout configured in
the database using the ``db.transaction.timeout`` setting
(``dbms.transaction.timeout`` before Neo4j 5.0).
Values higher than ``db.transaction.timeout`` will be ignored and
will fall back to the default for server versions 4.2 to including
5.2. The value should not represent a negative duration.
will fall back to the default for server versions between 4.2 and
5.2 (inclusive).
The value should not represent a negative duration.
A ``0`` duration will make the transaction execute indefinitely.
:data:`None` will use the default timeout configured on the server.

Expand Down
9 changes: 5 additions & 4 deletions src/neo4j/_sync/work/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,14 +468,15 @@ def begin_transaction(
the transaction timeout in seconds.
Transactions that execute longer than the configured timeout will
be terminated by the database.
This functionality allows to limit query/transaction execution
time.
This functionality allows user code to limit query/transaction
execution time.
The Specified timeout overrides the default timeout configured in
the database using the ``db.transaction.timeout`` setting
(``dbms.transaction.timeout`` before Neo4j 5.0).
Values higher than ``db.transaction.timeout`` will be ignored and
will fall back to the default for server versions 4.2 to including
5.2. The value should not represent a negative duration.
will fall back to the default for server versions between 4.2 and
5.2 (inclusive).
The value should not represent a negative duration.
A ``0`` duration will make the transaction execute indefinitely.
:data:`None` will use the default timeout configured on the server.

Expand Down
18 changes: 10 additions & 8 deletions src/neo4j/_work/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,15 @@ class Query:
the transaction timeout in seconds.
Transactions that execute longer than the configured timeout will
be terminated by the database.
This functionality allows to limit query/transaction execution
time.
This functionality allows user code to limit query/transaction
execution time.
The Specified timeout overrides the default timeout configured in
the database using the ``db.transaction.timeout`` setting
(``dbms.transaction.timeout`` before Neo4j 5.0).
Values higher than ``db.transaction.timeout`` will be ignored and
will fall back to the default for server versions 4.2 to including
5.2. The value should not represent a negative duration.
will fall back to the default for server versions between 4.2 and
5.2 (inclusive).
The value should not represent a negative duration.
A ``0`` duration will make the transaction execute indefinitely.
:data:`None` will use the default timeout configured on the server.
:type timeout: float | None
Expand Down Expand Up @@ -114,14 +115,15 @@ def count_people_tx(tx):
the transaction timeout in seconds.
Transactions that execute longer than the configured timeout will
be terminated by the database.
This functionality allows to limit query/transaction execution
time.
This functionality allows user code to limit query/transaction
execution time.
The Specified timeout overrides the default timeout configured in
the database using the ``db.transaction.timeout`` setting
(``dbms.transaction.timeout`` before Neo4j 5.0).
Values higher than ``db.transaction.timeout`` will be ignored and
will fall back to the default for server versions 4.2 to including
5.2. The value should not represent a negative duration.
will fall back to the default for server versions between 4.2 and
5.2 (inclusive).
The value should not represent a negative duration.
A ``0`` duration will make the transaction execute indefinitely.
:data:`None` will use the default timeout configured on the server.
:type timeout: float | None
Expand Down