<div dir="ltr">Hi Derek, <div><br></div><div>My guess is that you're missing a join() call on your thread before returning the wps response. </div><div><br></div><div>David</div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Dec 7, 2018 at 9:29 AM Carsten Ehbrecht <<a href="mailto:ehbrecht@dkrz.de">ehbrecht@dkrz.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space">Hi Derek,<div><br></div><div>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.</div><div><br></div><div>To test pywps you might find hints here:</div><div><br></div><div>* <a href="https://github.com/PyWPS/pywps-workshop/blob/master/03-Testing.md" target="_blank">https://github.com/PyWPS/pywps-workshop/blob/master/03-Testing.md</a></div><div>* <a href="https://birdhouse-workshop.readthedocs.io/en/latest/pywps/testing.html" target="_blank">https://birdhouse-workshop.readthedocs.io/en/latest/pywps/testing.html</a> </div><div>* <a href="https://github.com/bird-house/emu/blob/master/tests/test_wps_hello.py" target="_blank">https://github.com/bird-house/emu/blob/master/tests/test_wps_hello.py</a> </div><div><br></div><div>Cheers,</div><div>Carsten<br><div><br><blockquote type="cite"></blockquote></div></div></div><div style="word-wrap:break-word;line-break:after-white-space"><div><div><blockquote type="cite"><div>On 7 Dec 2018, at 1:40 pm, Derek Hohls <<a href="mailto:dhohls@csir.co.za" target="_blank">dhohls@csir.co.za</a>> wrote:</div><br class="m_-6440214386689418202Apple-interchange-newline"></blockquote></div></div></div><div style="word-wrap:break-word;line-break:after-white-space"><div><div><blockquote type="cite"><div><div style="font-family:Helvetica,Arial,sans-serif;font-size:13px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">Hi</div><br style="font-family:Helvetica,Arial,sans-serif;font-size:13px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><div style="font-family:Helvetica,Arial,sans-serif;font-size:13px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">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.  </div><br style="font-family:Helvetica,Arial,sans-serif;font-size:13px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><div style="font-family:Helvetica,Arial,sans-serif;font-size:13px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">I am looking for help in (a) how to get this going and (b) how to debug what the cause of the issue is.</div><br style="font-family:Helvetica,Arial,sans-serif;font-size:13px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><div style="font-family:Helvetica,Arial,sans-serif;font-size:13px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">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).</div><br style="font-family:Helvetica,Arial,sans-serif;font-size:13px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><div style="font-family:Helvetica,Arial,sans-serif;font-size:13px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">Thanks in advance</div><br style="font-family:Helvetica,Arial,sans-serif;font-size:13px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><div style="font-family:Helvetica,Arial,sans-serif;font-size:13px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">Derek</div><br style="font-family:Helvetica,Arial,sans-serif;font-size:13px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"></div></blockquote></div></div></div><div style="word-wrap:break-word;line-break:after-white-space"><div><div><blockquote type="cite"><div><span id="m_-6440214386689418202cid:69728AEB-8FCD-48AA-9A2A-BA96B7D5012E@dkrz.de"><thread_runner.py></span><span id="m_-6440214386689418202cid:3D652EBC-C97B-476D-A772-397F212C5C73@dkrz.de"><thread_controller.py></span><span style="font-family:Helvetica,Arial,sans-serif;font-size:13px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline!important">_______________________________________________</span></div></blockquote></div></div></div><div style="word-wrap:break-word;line-break:after-white-space"><div><div><blockquote type="cite"><div><br style="font-family:Helvetica,Arial,sans-serif;font-size:13px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><span style="font-family:Helvetica,Arial,sans-serif;font-size:13px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline!important">pywps-dev mailing list</span><br style="font-family:Helvetica,Arial,sans-serif;font-size:13px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><a href="mailto:pywps-dev@lists.osgeo.org" style="font-family:Helvetica,Arial,sans-serif;font-size:13px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank">pywps-dev@lists.osgeo.org</a><br style="font-family:Helvetica,Arial,sans-serif;font-size:13px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><a href="https://lists.osgeo.org/mailman/listinfo/pywps-dev" style="font-family:Helvetica,Arial,sans-serif;font-size:13px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank">https://lists.osgeo.org/mailman/listinfo/pywps-dev</a></div></blockquote></div></div></div>_______________________________________________<br>
pywps-dev mailing list<br>
<a href="mailto:pywps-dev@lists.osgeo.org" target="_blank">pywps-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/pywps-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/pywps-dev</a></blockquote></div>