redis-allocator 0.4.4__tar.gz → 0.4.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {redis_allocator-0.4.4/redis_allocator.egg-info → redis_allocator-0.4.6}/PKG-INFO +1 -1
- {redis_allocator-0.4.4 → redis_allocator-0.4.6}/pyproject.toml +1 -1
- redis_allocator-0.4.6/redis_allocator/_version.py +1 -0
- {redis_allocator-0.4.4 → redis_allocator-0.4.6}/redis_allocator/allocator.py +2 -2
- {redis_allocator-0.4.4 → redis_allocator-0.4.6/redis_allocator.egg-info}/PKG-INFO +1 -1
- redis_allocator-0.4.4/redis_allocator/_version.py +0 -1
- {redis_allocator-0.4.4 → redis_allocator-0.4.6}/LICENSE +0 -0
- {redis_allocator-0.4.4 → redis_allocator-0.4.6}/README.md +0 -0
- {redis_allocator-0.4.4 → redis_allocator-0.4.6}/redis_allocator/__init__.py +0 -0
- {redis_allocator-0.4.4 → redis_allocator-0.4.6}/redis_allocator/lock.py +0 -0
- {redis_allocator-0.4.4 → redis_allocator-0.4.6}/redis_allocator/task_queue.py +0 -0
- {redis_allocator-0.4.4 → redis_allocator-0.4.6}/redis_allocator.egg-info/SOURCES.txt +0 -0
- {redis_allocator-0.4.4 → redis_allocator-0.4.6}/redis_allocator.egg-info/dependency_links.txt +0 -0
- {redis_allocator-0.4.4 → redis_allocator-0.4.6}/redis_allocator.egg-info/requires.txt +0 -0
- {redis_allocator-0.4.4 → redis_allocator-0.4.6}/redis_allocator.egg-info/top_level.txt +0 -0
- {redis_allocator-0.4.4 → redis_allocator-0.4.6}/setup.cfg +0 -0
- {redis_allocator-0.4.4 → redis_allocator-0.4.6}/setup.py +0 -0
- {redis_allocator-0.4.4 → redis_allocator-0.4.6}/tests/__init__.py +0 -0
- {redis_allocator-0.4.4 → redis_allocator-0.4.6}/tests/conftest.py +0 -0
- {redis_allocator-0.4.4 → redis_allocator-0.4.6}/tests/test_allocator.py +0 -0
- {redis_allocator-0.4.4 → redis_allocator-0.4.6}/tests/test_lock.py +0 -0
- {redis_allocator-0.4.4 → redis_allocator-0.4.6}/tests/test_task_queue.py +0 -0
@@ -0,0 +1 @@
|
|
1
|
+
__version__ = '0.4.6'
|
@@ -345,7 +345,7 @@ class RedisAllocatorPolicy(ABC, Generic[U]):
|
|
345
345
|
else:
|
346
346
|
obj = None
|
347
347
|
inputs.append(RedisAllocatorObject(allocator, key, obj, params))
|
348
|
-
results = list(executor.map(self.check_health_once, inputs, timeout=
|
348
|
+
results = list(executor.map(self.check_health_once, inputs, timeout=lock_duration))
|
349
349
|
healthy = sum(results)
|
350
350
|
unhealthy = len(results) - healthy
|
351
351
|
return healthy, unhealthy
|
@@ -665,7 +665,7 @@ class RedisAllocator(RedisLockPool, Generic[U]):
|
|
665
665
|
-- set the item points to the tail
|
666
666
|
redis.call("HSET", poolItemsKey, itemName, join_pool_value(tail, "", expiry))
|
667
667
|
if tail == "" or head == "" then -- the free list is empty chain
|
668
|
-
assert(tail == "" and head == "", "head or tail should not be empty")
|
668
|
+
-- assert(tail == "" and head == "", "head or tail should not be empty")
|
669
669
|
set_current_head(itemName)
|
670
670
|
else
|
671
671
|
local tailVal = redis.call("HGET", poolItemsKey, tail)
|
@@ -1 +0,0 @@
|
|
1
|
-
__version__ = '0.4.4'
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{redis_allocator-0.4.4 → redis_allocator-0.4.6}/redis_allocator.egg-info/dependency_links.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|