Re: ParallelModuleQueue freezes...

Luca Delucchi <[email protected]> Wed, 26 May 2021 15:59:25 +0200
Newsgroups gmane.comp.gis.grass.devel
Message-ID <CAK4m-3ygsQtcPqAo5PgyiZ0qMRO9nyf32LujtH22eQ4jtpSLOw@mail.gmail.com>
On Wed, 26 May 2021 at 15:13, Stefan Blumentrath
<[email protected]> wrote:
>
> Thanks, Markus.
>
> Seems that the ParallelModuleQueue itself works if it is fed with Module objects, but not if MultiModule objects are put into the queue...
>
> So, I believe I am struggling with the same issue as Luca:
> https://github.com/OSGeo/grass-addons/pull/523#issue-629160914
>

probably yes

> Can it be that returns of the MuliModule should be different? If I understand the source code [1]  correctly, Module returns "self" (a Module object) while MultiModule returns "None". Can that be the root cause?
>

it seems to me that MultiModule returns "None" when it finish
otherwise return self.p (a Process instance)

> Any help is much appreciated...
>

same for my side :-)

> Cheers
> Stefan
>
> 1: https://grass.osgeo.org/grass79/manuals/libpython/_modules/pygrass/modules/interface/module.html#MultiModule
>


-- 
ciao
Luca

www.lucadelu.org