summaryrefslogtreecommitdiff
path: root/requirements.txt
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@yahoo-inc.com>2014-10-24 11:29:44 -0700
committerJoshua Harlow <harlowja@gmail.com>2014-11-20 22:09:45 -0800
commit46c836ee28aff5bfa57598971cd175a0be0951d9 (patch)
tree59be2599be11892497ebc8f26de95fe33e33dde7 /requirements.txt
parent3bda65ccbb1a087dc4f5526c49799eae7d81c504 (diff)
downloadoslo-concurrency-46c836ee28aff5bfa57598971cd175a0be0951d9.tar.gz
Allow the lock delay to be provided
When a lock can't be acquired there is currently a hard coded delay (0.01) that is used before trying again, instead of having a hard coded delay we should allow this delay to be configured since having it set at a hard coded value can limit concurrency (if the delay is actually way to high) or cause to much contention (if the delay is actually way to low). This review adds on that logic and also uses the retrying library to perform the acquisition attempts (and associated failures when/if they occur); as well as shows logs after a given amount of time has elapsed with the logs being output at a given periodicity. Change-Id: Ideeefba1439ddd677c608d01becb4f6a0d4bc83d
Diffstat (limited to 'requirements.txt')
-rw-r--r--requirements.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/requirements.txt b/requirements.txt
index b1a8722..a27b434 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -11,3 +11,4 @@ oslo.i18n>=1.0.0 # Apache-2.0
oslo.utils>=1.0.0 # Apache-2.0
posix_ipc
six>=1.7.0
+retrying>=1.2.2,!=1.3.0 # Apache-2.0