summaryrefslogtreecommitdiff
path: root/taskflow/engines/worker_based/proxy.py
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-01-29 08:37:12 +0000
committerGerrit Code Review <review@openstack.org>2015-01-29 08:37:12 +0000
commitc6bfb36d25dcf90716bc2501eb1ec169bf10d1e2 (patch)
treeaf411c1e0c5d6e824c2aca96d3bb665b24bd1f95 /taskflow/engines/worker_based/proxy.py
parente86c4780f6af3f27f533f25cfa21a7a70e3b393c (diff)
parent7fe2945813450cd0ba1264171c5a90dc0f90d57f (diff)
downloadtaskflow-c6bfb36d25dcf90716bc2501eb1ec169bf10d1e2.tar.gz
Merge "Link WBE docs together better (especially around arguments)"
Diffstat (limited to 'taskflow/engines/worker_based/proxy.py')
-rw-r--r--taskflow/engines/worker_based/proxy.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/taskflow/engines/worker_based/proxy.py b/taskflow/engines/worker_based/proxy.py
index 430be79..f404623 100644
--- a/taskflow/engines/worker_based/proxy.py
+++ b/taskflow/engines/worker_based/proxy.py
@@ -47,12 +47,7 @@ class Proxy(object):
For **internal** usage only (not for public consumption).
"""
- # Settings that are by default used for consumers/producers to reconnect
- # under tolerable/transient failures...
- #
- # See: http://kombu.readthedocs.org/en/latest/reference/kombu.html for
- # what these values imply...
- _DEFAULT_RETRY_OPTIONS = {
+ DEFAULT_RETRY_OPTIONS = {
# The number of seconds we start sleeping for.
'interval_start': 1,
# How many seconds added to the interval for each retry.
@@ -62,6 +57,12 @@ class Proxy(object):
# Maximum number of times to retry.
'max_retries': 3,
}
+ """Settings used (by default) to reconnect under transient failures.
+
+ See: http://kombu.readthedocs.org/ (and connection ``ensure_options``) for
+ what these values imply/mean...
+ """
+
# This is the only provided option that should be an int, the others
# are allowed to be floats; used when we check that the user-provided
# value is valid...
@@ -81,7 +82,7 @@ class Proxy(object):
# running, otherwise requeue them.
lambda data, message: not self.is_running)
- ensure_options = self._DEFAULT_RETRY_OPTIONS.copy()
+ ensure_options = self.DEFAULT_RETRY_OPTIONS.copy()
if retry_options is not None:
# Override the defaults with any user provided values...
for k in set(six.iterkeys(ensure_options)):