Skip to content

Commit ee62142

Browse files
emar-kartseaver
authored andcommitted
docs(spanner): update description of the timeout_secs parameter (#9381)
Closes #9364
1 parent b2f28ca commit ee62142

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

spanner/google/cloud/spanner_v1/database.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -419,9 +419,10 @@ def run_in_transaction(self, func, *args, **kw):
419419
:param args: additional positional arguments to be passed to ``func``.
420420
421421
:type kw: dict
422-
:param kw: optional keyword arguments to be passed to ``func``.
422+
:param kw: (Optional) keyword arguments to be passed to ``func``.
423423
If passed, "timeout_secs" will be removed and used to
424-
override the default timeout.
424+
override the default retry timeout which defines maximum timestamp
425+
to continue retrying the transaction.
425426
426427
:rtype: Any
427428
:returns: The return value of ``func``.

spanner/google/cloud/spanner_v1/session.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -273,9 +273,10 @@ def run_in_transaction(self, func, *args, **kw):
273273
:param args: additional positional arguments to be passed to ``func``.
274274
275275
:type kw: dict
276-
:param kw: optional keyword arguments to be passed to ``func``.
276+
:param kw: (Optional) keyword arguments to be passed to ``func``.
277277
If passed, "timeout_secs" will be removed and used to
278-
override the default timeout.
278+
override the default retry timeout which defines maximum timestamp
279+
to continue retrying the transaction.
279280
280281
:rtype: Any
281282
:returns: The return value of ``func``.

0 commit comments

Comments
 (0)