redis-allocator 0.4.5__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.
Files changed (22) hide show
  1. {redis_allocator-0.4.5/redis_allocator.egg-info → redis_allocator-0.4.6}/PKG-INFO +1 -1
  2. {redis_allocator-0.4.5 → redis_allocator-0.4.6}/pyproject.toml +1 -1
  3. redis_allocator-0.4.6/redis_allocator/_version.py +1 -0
  4. {redis_allocator-0.4.5 → redis_allocator-0.4.6}/redis_allocator/allocator.py +1 -1
  5. {redis_allocator-0.4.5 → redis_allocator-0.4.6/redis_allocator.egg-info}/PKG-INFO +1 -1
  6. redis_allocator-0.4.5/redis_allocator/_version.py +0 -1
  7. {redis_allocator-0.4.5 → redis_allocator-0.4.6}/LICENSE +0 -0
  8. {redis_allocator-0.4.5 → redis_allocator-0.4.6}/README.md +0 -0
  9. {redis_allocator-0.4.5 → redis_allocator-0.4.6}/redis_allocator/__init__.py +0 -0
  10. {redis_allocator-0.4.5 → redis_allocator-0.4.6}/redis_allocator/lock.py +0 -0
  11. {redis_allocator-0.4.5 → redis_allocator-0.4.6}/redis_allocator/task_queue.py +0 -0
  12. {redis_allocator-0.4.5 → redis_allocator-0.4.6}/redis_allocator.egg-info/SOURCES.txt +0 -0
  13. {redis_allocator-0.4.5 → redis_allocator-0.4.6}/redis_allocator.egg-info/dependency_links.txt +0 -0
  14. {redis_allocator-0.4.5 → redis_allocator-0.4.6}/redis_allocator.egg-info/requires.txt +0 -0
  15. {redis_allocator-0.4.5 → redis_allocator-0.4.6}/redis_allocator.egg-info/top_level.txt +0 -0
  16. {redis_allocator-0.4.5 → redis_allocator-0.4.6}/setup.cfg +0 -0
  17. {redis_allocator-0.4.5 → redis_allocator-0.4.6}/setup.py +0 -0
  18. {redis_allocator-0.4.5 → redis_allocator-0.4.6}/tests/__init__.py +0 -0
  19. {redis_allocator-0.4.5 → redis_allocator-0.4.6}/tests/conftest.py +0 -0
  20. {redis_allocator-0.4.5 → redis_allocator-0.4.6}/tests/test_allocator.py +0 -0
  21. {redis_allocator-0.4.5 → redis_allocator-0.4.6}/tests/test_lock.py +0 -0
  22. {redis_allocator-0.4.5 → redis_allocator-0.4.6}/tests/test_task_queue.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: redis-allocator
3
- Version: 0.4.5
3
+ Version: 0.4.6
4
4
  Summary: Redis-based resource allocation system.
5
5
  Home-page: https://github.com/invoker-bot/RedisAllocator-python
6
6
  Author: Invoker Bot
@@ -4,7 +4,7 @@ build-backend = 'setuptools.build_meta'
4
4
 
5
5
  [tool.commitizen]
6
6
  name = "cz_conventional_commits"
7
- version = "0.4.5"
7
+ version = "0.4.6"
8
8
  tag_format = "v$version"
9
9
 
10
10
  [tool.commitizen.version_files]
@@ -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=max_threads * lock_duration / (len(inputs) + 1)))
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: redis-allocator
3
- Version: 0.4.5
3
+ Version: 0.4.6
4
4
  Summary: Redis-based resource allocation system.
5
5
  Home-page: https://github.com/invoker-bot/RedisAllocator-python
6
6
  Author: Invoker Bot
@@ -1 +0,0 @@
1
- __version__ = '0.4.5'
File without changes