Hello, I have this script running in Julia 1.1.
If I run it withing a single process (no workers added) everything works fine. If I add process (e.g. addprocs(3)) nothing gets run and the execution hangs indefinitely
using Distributed
@everywhere function inner_process(task_id)
task_id^2
end
@everywhere function outer_process(job_id)
inner_task = collect(1:2)
pmap(inner_process, inner_task)
end
function do_job(jobs_list)
pmap(outer_process, jobs_list)
end
jobs_list = collect(1:10)
do_job(jobs_list)
Is that the expected behavior? Are pmaps not meant to be nested?
Thanks