7696: Improve PySDK KeepClient.ThreadLimiter.
authorBrett Smith <brett@curoverse.com>
Wed, 11 Nov 2015 22:08:39 +0000 (17:08 -0500)
committerBrett Smith <brett@curoverse.com>
Fri, 13 Nov 2015 14:29:24 +0000 (09:29 -0500)
commite704e66bc35a0f0990620313ae9e2a630fa6821b
tree4b2a8f82963220d538d856dbf5415bff40455a62
parentc33d036cfef0b0784d16593e66e3f4fce018f783
7696: Improve PySDK KeepClient.ThreadLimiter.

* Move the calculation of how many threads to allow into the class.
* Teach it to handle cases where max_replicas_per_service is known and
  greater than 1.  This will never happen today, but is an anticipated
  improvement.
* Update docstrings to reflect current reality.

These are all changes I made while debugging the previous race
condition.
sdk/python/arvados/keep.py