Recursive submit in concurrent.future.ProcessPoolExecutor

Nov. 19, 2021
6:12 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.
1216
Age (days ago)
1216
Last active (days ago)
0 comments
1 participants
participants (1)
-
Evan Greenup