Thanks Tomas for reporting issue and Thanks David for working
on this.
I can see the problem in GatherMerge, specially when nworkers_launched
is zero. I will look into this issue and will post a fix for the same.
Also another point which I think we should fix is, when someone set
max_parallel_workers = 0, we should also set the max_parallel_workers_per_gather
to zero. So that way it we can avoid generating the gather path with
max_parallel_worker = 0.
Thanks,