<p dir="ltr"><br>
On 4 May 2016 07:32, "Richard Duivenvoorde" <<a href="mailto:rdmailings@duif.net">rdmailings@duif.net</a>> wrote:<br>
><br>
> On 03-05-16 22:56, Nyall Dawson wrote:<br>
><br>
> > <a href="https://github.com/qgis/QGIS/pull/3004">https://github.com/qgis/QGIS/pull/3004</a><br>
> ><br>
> > is designed to handle cases like this. I'd very much value it if you<br>
> > could read over the comments on the PR and confirm that the PR design<br>
> > would meet your needs (or not!)<br>
><br>
> Hi Nyall,<br>
><br>
> had not seen this before, nice ( movies ;-) ) and good ideas<br>
><br>
> yes, I think this could absolutely work for my problem, though for<br>
> general use we should<br>
> - document, document, blog, blog, write, document it clearly<br>
> - make the api so clear/clean that even I can use it</p>
<p dir="ltr">I'm targeting this to after 2.16 so there should be plenty of time to make the design rock solid :)</p>
<p dir="ltr">><br>
> I think in the comments about processing it is already mentioned, but<br>
> the 'chaining' of tasks would be possible/easy.<br>
><br>
> Like in my case:<br>
> - when task-1 (WPS) is finished start task-3<br>
> - task-3 (merge all the shp files and do some magic with attr)<br>
> - task-2 (WFS) is finished start task-4<br>
> - task-4 do some magic with the gml<br>
> - if all those are done: show the results...</p>
<p dir="ltr">That's already implemented. You can set task "dependancies", and the manager will magically handle the rest. This includes things like auto cancelling any remaining tasks when one of their dependancies fails (or is cancelled). </p>
<p dir="ltr">It will basically run as many tasks as possible (given available threads), and whenever a task finishes it looks through the list for any tasks which were waiting on that task and fires them up ASAP.</p>
<p dir="ltr">Nyall</p>
<p dir="ltr">><br>
> Which off course looks a lot like processing modeller...<br>
><br>
> Anyway: nice work and also a good example of discussion/communication<br>
> between devs. Thanks all!<br>
><br>
> Regards,<br>
><br>
> Richard<br>
><br>
><br>
><br>
</p>