[PyWPS-dev] Running a subprocess via pyWPS?

David Huard huard.david at ouranos.ca
Fri Dec 7 16:38:13 PST 2018


Hi Derek,

My guess is that you're missing a join() call on your thread before
returning the wps response.

David

On Fri, Dec 7, 2018 at 9:29 AM Carsten Ehbrecht <ehbrecht at dkrz.de> wrote:

> Hi Derek,
>
> I just had a glimpse view on your code example. If I understand it
> correctly your PyWPS process is calling a threaded python function. So, I
> would try to test both independently … the process (just returning a dummy
> result) and your python function.
>
> To test pywps you might find hints here:
>
> * https://github.com/PyWPS/pywps-workshop/blob/master/03-Testing.md
> * https://birdhouse-workshop.readthedocs.io/en/latest/pywps/testing.html
> * https://github.com/bird-house/emu/blob/master/tests/test_wps_hello.py
>
> Cheers,
> Carsten
>
> On 7 Dec 2018, at 1:40 pm, Derek Hohls <dhohls at csir.co.za> wrote:
>
> Hi
>
> I am using pyWPS 4.  I am trying to use it to trigger the opening of a
> sub-process in a thread.  However, I get no response back, nor does the
> subprocess appear to activate.
>
> I am looking for help in (a) how to get this going and (b) how to debug
> what the cause of the issue is.
>
> I have a attached a sample 'dummy' app (Note that for my actual
> application, the thread that is launched is expected to run continuously in
> the background; so the "ls" function I have used here is not a really good,
> representative example but the simplest one I could think of).
>
> Thanks in advance
>
> Derek
>
> <thread_runner.py><thread_controller.py>
> _______________________________________________
>
>
> pywps-dev mailing list
> pywps-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/pywps-dev
>
> _______________________________________________
> pywps-dev mailing list
> pywps-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/pywps-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pywps-dev/attachments/20181207/96f1a49a/attachment.html>


More information about the pywps-dev mailing list