[issue41567] multiprocessing.Pool from concurrent threads failure on 3.9.0rc1
doublex added the comment: Example code (fails): import os, concurrent.futures def parallel_callback( arg ): return os.getpid() def parallel( *args ): def thread_callback( param ): with concurrent.futures.ProcessPoolExecutor(max_workers=1) as executor: future = executor.submit( parallel_callback, param ) pid = future.result() print( 'pid:', pid ) return pid with concurrent.futures.ThreadPoolExecutor(max_workers=len(args)) as executor: future = executor.map( thread_callback, args ) results = list(future) print( 'DONE' ) parallel( 1, 2, 3 ) -- nosy: +doublex ___ Python tracker <https://bugs.python.org/issue41567> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43065] Delegating to thread and process deadlocks
Change by doublex : -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue43065> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43065] 'concurrent.futures' stucks in 3.9.1
New submission from doublex : Works with python 3.8 Fails with 3.9.1 (tested on CentOS 7 and Ubuntu 2004) Yes, sometimes is does not stuck... Command-line: python3.9 stuck.py -- components: Interpreter Core files: stuck.py messages: 385931 nosy: doublex priority: normal severity: normal status: open title: 'concurrent.futures' stucks in 3.9.1 type: resource usage versions: Python 3.9 Added file: https://bugs.python.org/file49775/stuck.py ___ Python tracker <https://bugs.python.org/issue43065> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43065] Delegating to thread and process stucks in 3.9.1
Change by doublex : -- components: +Library (Lib) -Interpreter Core title: 'concurrent.futures' stucks in 3.9.1 -> Delegating to thread and process stucks in 3.9.1 ___ Python tracker <https://bugs.python.org/issue43065> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue43065] Delegating to thread and process deadlocks
Change by doublex : -- title: Delegating to thread and process stucks in 3.9.1 -> Delegating to thread and process deadlocks ___ Python tracker <https://bugs.python.org/issue43065> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com