[issue45689] Add the ability to give custom names to threads created by ThreadPoolExecutor

2021-11-09 Thread Tangellapalli Sai Hanuma Rahul
Tangellapalli Sai Hanuma Rahul added the comment: Yes, it's true, it's so naive method, Contextvars! may be inside the Future Object? -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracke

[issue45689] Add the ability to give custom names to threads created by ThreadPoolExecutor

2021-11-09 Thread Tangellapalli Sai Hanuma Rahul
Tangellapalli Sai Hanuma Rahul added the comment: In summary; == Current Problem: -- ThreadPoolExecutor handles all threads-related activities so the user needs to just submit tasks and set max_workers and other Executor settings if necessary. If ThreadPoolExecutor

[issue45689] Add the ability to give custom names to threads created by ThreadPoolExecutor

2021-11-08 Thread Tangellapalli Sai Hanuma Rahul
Tangellapalli Sai Hanuma Rahul added the comment: There is a new function submit_with_name in _base.Executor that can accept name parameters before args and kwargs, submit can continue to be used as before. submit internally calls submit_with_name with name as None. Calling submit_with_name

[issue45689] Custom Name for ThreadPoolExecutor

2021-11-07 Thread Tangellapalli Sai Hanuma Rahul
Tangellapalli Sai Hanuma Rahul added the comment: ThreadPool handles tasks concurrently through Threads so users need not worry about the creation/deletion of Threads, it uses reuses threads whenever possible and it can handle any tasks. However, it should be possible for users to at least

[issue45689] Custom Name for ThreadPoolExecutor

2021-11-03 Thread Tangellapalli Sai Hanuma Rahul
Change by Tangellapalli Sai Hanuma Rahul : -- versions: -Python 3.10, Python 3.11 ___ Python tracker <https://bugs.python.org/issue45689> ___ ___ Python-bug

[issue45689] Custom Name for ThreadPoolExecutor

2021-11-02 Thread Tangellapalli Sai Hanuma Rahul
Change by Tangellapalli Sai Hanuma Rahul : -- hgrepos: -410 ___ Python tracker <https://bugs.python.org/issue45689> ___ ___ Python-bugs-list mailing list Unsub

[issue45689] Custom Name for ThreadPoolExecutor

2021-11-02 Thread Tangellapalli Sai Hanuma Rahul
Change by Tangellapalli Sai Hanuma Rahul : -- hgrepos: +410 keywords: +patch pull_requests: +27619 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29359 ___ Python tracker <https://bugs.python.org/issu

[issue45689] Custom Name for ThreadPoolExecutor

2021-11-02 Thread Tangellapalli Sai Hanuma Rahul
New submission from Tangellapalli Sai Hanuma Rahul : Feature Request: Where we can use custom Names for separate threads submitted in ThreadPoolExecutor. It achieves by sending the name string to _work_queue of ThreadPoolExecutor and then in _worker function modifies the name