Skip to content

Commit 16893a1

Browse files
Improve docstring for timeout param in unit_of_work decorator. (#828)
Co-authored-by: Robsdedude <rouven.bauer@neo4j.com>
1 parent e4ff06b commit 16893a1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

neo4j/work/simple.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,8 @@ def count_people_tx(tx):
477477
Transactions that execute longer than the configured timeout will be terminated by the database.
478478
This functionality allows to limit query/transaction execution time.
479479
Specified timeout overrides the default timeout configured in the database using ``dbms.transaction.timeout`` setting.
480+
Values higher than ``dbms.transaction.timeout`` will be ignored and
481+
will fall back to default (unless using Neo4j < 4.2).
480482
Value should not represent a duration of zero or negative duration.
481483
:type timeout: float or :const:`None`
482484
"""

0 commit comments

Comments
 (0)