Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion docs/source/usage_patterns.rst
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ unit_of_work
from neo4j import unit_of_work
@unit_of_work(timeout=10)
@unit_of_work(timeout=10) # don't wait longer than 10 seconds for a result
def test_work(tx, *args, **kwargs):
query = "RETURN $tag AS $name"
Expand Down
4 changes: 2 additions & 2 deletions neo4j/work/simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ def begin_transaction(self, metadata=None, timeout=None):
:type metadata: dict
:param timeout:
the transaction timeout in milliseconds.
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.
Specified timeout overrides the default timeout configured in the database using ``dbms.transaction.timeout`` setting.
Expand Down Expand Up @@ -442,7 +442,7 @@ def count_people_tx(tx):
:type metadata: dict
:param timeout:
the transaction timeout in milliseconds.
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.
Specified timeout overrides the default timeout configured in the database using ``dbms.transaction.timeout`` setting.
Expand Down