python / cpython

The Python programming language
https://www.python.org
Other
62.35k stars 29.94k forks source link

ThreadPoolExecutor and ProcessPoolExecutor, dynamic worker count #80314

Open 6bb5900f-8be1-497f-adaf-0916c9cfac7c opened 5 years ago

6bb5900f-8be1-497f-adaf-0916c9cfac7c commented 5 years ago
BPO 36133

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields: ```python assignee = None closed_at = None created_at = labels = ['3.8', 'library'] title = 'ThreadPoolExecutor and ProcessPoolExecutor, dynamic worker count' updated_at = user = 'https://bugs.python.org/FabianDill' ``` bugs.python.org fields: ```python activity = actor = 'Fabian Dill' assignee = 'none' closed = False closed_date = None closer = None components = ['Library (Lib)'] creation = creator = 'Fabian Dill' dependencies = [] files = [] hgrepos = [] issue_num = 36133 keywords = [] message_count = 1.0 messages = ['336745'] nosy_count = 1.0 nosy_names = ['Fabian Dill'] pr_nums = [] priority = 'normal' resolution = None stage = None status = 'open' superseder = None type = None url = 'https://bugs.python.org/issue36133' versions = ['Python 3.8'] ```

6bb5900f-8be1-497f-adaf-0916c9cfac7c commented 5 years ago

The request is, that the _max_workers attribute of the pools are exposed as a proper interface, that would allow changing of the worker amount after initialisation.