[issue41694] python3 futures.as_completed timeout broken if future contains undefined reference

Dallas Marlow report at bugs.python.org
Wed Sep 2 12:41:34 EDT 2020


Dallas Marlow <dallasmarlow at gmail.com> added the comment:

I also verified that this issue persists with blocking futures other than sleep calls:

import concurrent.futures
import subprocess

with concurrent.futures.ThreadPoolExecutor() as ex:
	futures = [
		ex.submit(subprocess.run, ['sleep', '30']),
		ex.submit(print, 'test'),
	]
	for future in concurrent.futures.as_completed(futures, timeout=1):
		_ = future.result()

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41694>
_______________________________________


More information about the Python-bugs-list mailing list