summaryrefslogtreecommitdiff
path: root/oslo_db/api.py
diff options
context:
space:
mode:
Diffstat (limited to 'oslo_db/api.py')
-rw-r--r--oslo_db/api.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/oslo_db/api.py b/oslo_db/api.py
index ea1d41d..8cab3e5 100644
--- a/oslo_db/api.py
+++ b/oslo_db/api.py
@@ -91,7 +91,7 @@ class wrap_db_retry(object):
Keyword arguments:
:param retry_interval: seconds between transaction retries
- :type retry_interval: int
+ :type retry_interval: int or float
:param max_retries: max number of retries before an error is raised
:type max_retries: int
@@ -100,13 +100,14 @@ class wrap_db_retry(object):
:type inc_retry_interval: bool
:param max_retry_interval: max interval value between retries
- :type max_retry_interval: int
+ :type max_retry_interval: int or float
:param exception_checker: checks if an exception should trigger a retry
:type exception_checker: callable
"""
- def __init__(self, retry_interval=0, max_retries=0, inc_retry_interval=0,
+ def __init__(self, retry_interval=0, max_retries=0,
+ inc_retry_interval=False,
max_retry_interval=0, retry_on_disconnect=False,
retry_on_deadlock=False, retry_on_request=False,
exception_checker=lambda exc: False):