We are jazzed to announce the release of: futurist 3.2.0 The source is available from: https://opendev.org/openstack/futurist Download the package from: https://pypi.org/project/futurist For more details, please see below. 3.2.0 ^^^^^ New Features * Adds a new "DynamicThreadPoolExecutor" that can resize (grow or shrink) its pool based on demand. As new work is scheduled on the executor, it will try to keep the proportion of busy threads within the provided range (between 40% and 80% by default). The motivation is to provide a scalable alternative to "GreenThreadPoolExecutor". Changes in futurist 3.1.1..3.2.0 -------------------------------- 9ea9a00 Use consistent validation error message for worker args 53b25c7 Remove sleeps from DynamicThreadPoolExecutor tests 679355a Add DynamicThreadPoolExecutor that resizes itself 367ecab Fix ThreadWorker.stop to stop only this worker 44ca7f1 Provide insights into the state of ThreadPoolExecutor 20ea4ca Trivial: avoid noqa in __init__.py 31f9614 add pyproject.toml to support pip 23.1 f0e4764 Drop explicit dependency on python-subunit bcbb4f3 tox: Remove basepython Diffstat (except docs and test files) ------------------------------------- futurist/__init__.py | 36 +++- futurist/_futures.py | 224 ++++++++++++++++++++- futurist/_thread.py | 33 ++- pyproject.toml | 3 + .../notes/dynamic-pool-ae8811eecd5f9009.yaml | 10 + test-requirements.txt | 1 - tox.ini | 2 - 9 files changed, 406 insertions(+), 40 deletions(-) Requirements updates -------------------- diff --git a/test-requirements.txt b/test-requirements.txt index 1958ed2..3b08d5c 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -5 +4,0 @@ coverage>=4.0 # Apache-2.0 -python-subunit>=1.0.0 # Apache-2.0/BSD
participants (1)
-
no-reply@openstack.org