<p dir="ltr"><br>
On 4 May 2016 06:36, "Richard Duivenvoorde" <<a href="mailto:rdmailings@duif.net">rdmailings@duif.net</a>> wrote:<br>
><br>
> Hi Devs,<br>
><br>
> my plugin needs to fire as quick as possible:<br>
> - 24 (hourly) WPS requests to service A, resulting in a dir with shp/zips<br>
> - >3 (slow) paging WFS requests (30000 features) to service B resulting<br>
> in 3 gml files<br>
> If all this is finished, show all the results in QGIS<br>
><br>
> mostly using this page:<br>
><br>
> <a href="https://snorfalorpagus.net/blog/2013/12/07/multithreading-in-qgis-python-plugins/">https://snorfalorpagus.net/blog/2013/12/07/multithreading-in-qgis-python-plugins/</a><br>
><br>
> I created 'workers' for the services, and two different QThreads to be<br>
> able to move the workers to.<br>
><br>
> BUT when testing/running: I do not see 2 parallel service processes: I<br>
> see first all 24 WPS request, and then the 3 slow WFS request (or the<br>
> other way around if I change order of starting the threads...<br>
><br>
> Anybody a clue or idea IF what I'm trying to achieve should be possible<br>
> in this way? Or should I use other PyQT-machinery for this?<br>
> Note that the gui-update is not even my biggest challence, I just want<br>
> these two "slow" processes to run in parallel.<br></p>
<p dir="ltr">It's not an answer to your current predicament, but </p>
<p dir="ltr"><a href="https://github.com/qgis/QGIS/pull/3004">https://github.com/qgis/QGIS/pull/3004</a></p>
<p dir="ltr">is designed to handle cases like this. I'd very much value it if you could read over the comments on the PR and confirm that the PR design would meet your needs (or not!)</p>
<p dir="ltr">Nyall<br>
><br>
> Regards & TIA,<br>
><br>
> Richard<br>
><br>
> (untill now it is only in a cli interface using a QApplication)<br>
> _______________________________________________<br>
> Qgis-developer mailing list<br>
> <a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
> List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
> Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a></p>