diff options
author | chenghuiyu <yuchenghui@unionpay.com> | 2017-09-01 16:47:15 +0800 |
---|---|---|
committer | chenghuiyu <yuchenghui@unionpay.com> | 2017-10-27 08:40:26 +0800 |
commit | 4a727233dc2b7d1021ed7932d2cd27d8053dca31 (patch) | |
tree | 472111b84b71994931f0ff6582f707b405e5ad57 /oslo_db | |
parent | e9a9701d54ea1b708e7fc3ef68e75eb288059632 (diff) | |
download | oslo-db-4a727233dc2b7d1021ed7932d2cd27d8053dca31.tar.gz |
Remove kwarg retry_on_request in wrap_db_retry
As Retry on request is always enabled, so the kwarg retry_on_request is
deprecated for removal.
Change-Id: I9c918828ce9f7075a4e33a6fbadd9613c81fa2eb
Closes-Bug: #1714440
Diffstat (limited to 'oslo_db')
-rw-r--r-- | oslo_db/api.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/oslo_db/api.py b/oslo_db/api.py index 621631b..62cf889 100644 --- a/oslo_db/api.py +++ b/oslo_db/api.py @@ -27,7 +27,6 @@ import logging import threading import time -from debtcollector import removals from oslo_utils import excutils from oslo_utils import importutils from oslo_utils import reflection @@ -106,12 +105,10 @@ class wrap_db_retry(object): :type exception_checker: callable """ - @removals.removed_kwarg("retry_on_request", - "Retry on request is always enabled") def __init__(self, retry_interval=1, max_retries=20, inc_retry_interval=True, max_retry_interval=10, retry_on_disconnect=False, - retry_on_deadlock=False, retry_on_request=False, + retry_on_deadlock=False, exception_checker=lambda exc: False): super(wrap_db_retry, self).__init__() |