Nivi Mukka
08/11/2021, 3:19 PMmultiprocessing
inside my task code and how is that expected to behave in Prefect+Dask?
Code looks like this inside the task:
from tqdm import tqdm
import multiprocessing
pool = multiprocessing.Pool(processes=16)
func_output = list(tqdm(pool.imap(some_func, some_functions_input)))
I am getting this error:
AssertionError: daemonic processes are not allowed to have children
Nivi Mukka
08/11/2021, 3:20 PMmap
instead of multiprocessing
?
func_output = list(tqdm(map(some_func, some_functions_input)))
Kevin Kho
Kevin Kho
Nivi Mukka
08/12/2021, 2:49 AMmultiprocessing
- I keep getting the AssertionError: daemonic processes are not allowed to have children
.Nivi Mukka
08/12/2021, 2:53 AMfunc_output = list(tqdm(map(some_func, some_functions_input)))
How can I move this outside of the task and still use map
? Could you share an example?Kevin Kho
Nivi Mukka
08/12/2021, 4:08 PMKevin Kho
Kevin Kho
Nivi Mukka
08/12/2021, 4:11 PMflow.register
. Flow code is hard to share.Nivi Mukka
08/12/2021, 4:11 PMDaskExecutor
Kevin Kho