From 3a7e596cf02215f0d471a9b48f862b34fce5a16e Mon Sep 17 00:00:00 2001 From: Stefano Ottolenghi Date: Wed, 12 Oct 2022 09:06:40 +0200 Subject: [PATCH 1/2] [4.4] Improve docstring for timeout param in unit_of_work decorator. --- neo4j/work/simple.py | 1 + 1 file changed, 1 insertion(+) diff --git a/neo4j/work/simple.py b/neo4j/work/simple.py index a2570a6c0..ae04f3ea9 100644 --- a/neo4j/work/simple.py +++ b/neo4j/work/simple.py @@ -477,6 +477,7 @@ def count_people_tx(tx): 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. + Values higher than ``dbms.transaction.timeout`` will be ignored and will fallback to default (unless using Neo4j < 4.2). Value should not represent a duration of zero or negative duration. :type timeout: float or :const:`None` """ From 294b3d78f20653ba3d09f4acd3430541796d83a4 Mon Sep 17 00:00:00 2001 From: Robsdedude Date: Wed, 12 Oct 2022 10:29:42 +0200 Subject: [PATCH 2/2] 79 char hard wrap --- neo4j/work/simple.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/neo4j/work/simple.py b/neo4j/work/simple.py index ae04f3ea9..4a0383e72 100644 --- a/neo4j/work/simple.py +++ b/neo4j/work/simple.py @@ -477,7 +477,8 @@ def count_people_tx(tx): 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. - Values higher than ``dbms.transaction.timeout`` will be ignored and will fallback to default (unless using Neo4j < 4.2). + Values higher than ``dbms.transaction.timeout`` will be ignored and + will fall back to default (unless using Neo4j < 4.2). Value should not represent a duration of zero or negative duration. :type timeout: float or :const:`None` """