Recursive submit in concurrent.future.ProcessPoolExecutor
19 Nov
2021
19 Nov
'21
10:42 a.m.
Hi, Currrently, is it allowed for process worker to submit new task to its parent executor? Considering the following Python script: ```python3 import concurrent.futures with concurrent.futures.ProcessPoolExecutor(max_workers=12) as ppe: def hello(n: int) -> int: if n == 0: return 0 return n+ ppe.submit(hello, n-1).result() future = ppe.submit(hello, 1) print(future.result()) ``` It will never stuck and never ended. Sent with [ProtonMail](https://protonmail.com/) Secure Email.
882
Age (days ago)
882
Last active (days ago)
0 comments
1 participants
participants (1)
-
Evan Greenup