Joshua Harlow 46c836ee28 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
2014-11-20 22:09:45 -08:00
2014-08-07 22:27:31 +04:00
2014-11-17 18:53:06 -05:00
2014-09-09 04:32:55 +00:00
2014-11-14 17:17:25 -05:00

oslo.concurrency

Oslo concurrency library has utilities for safely running multi-thread, multi-process applications using locking mechanisms and for running external processes.

Description
OpenStack library for all concurrency-related code
Readme 4.7 MiB
Languages
Python 100%