Response document of a stored job is not updated
Closed this issue · 2 comments
Description
I make a asynchronous process that works perfectly when the job is alone (parallelprocesses=1). So, to test the maxprocesses=10, i send two requests to my server. The second job is stored and a document has built. But, when the first job is finished and the second is released, the document response of second wasn't updated, but the database sqlite and log file are updated and files are produced in work directory. The response document remains stuck with <wps:ProcessAccepted percentCompleted="0">PyWPS Process waterFlowSimulation accepted</wps:ProcessAccepted>.
I don't understand the problem because the response document of the first job is updated wps:ProcessSucceededPyWPS Process Estimation waterFlowSimulation finished</wps:ProcessSucceeded>.
Do you have any idea where the problem may come from ?
Environment
- operating system : Debian GNU/Linux 9.5
- Python version: 2.7.15rc1
- PyWPS version: 4.2.1
- source/distribution
- git clone
- Debian
- PyPI
- zip/tar.gz
- other (please specify):
- web server
- Apache/mod_wsgi
- CGI
- other (please specify):
Steps to Reproduce
1/ Set parallelprocesses=1 and maxprocesses=10
2/ Execute 2 process at same time with storeExecuteResponse=true (async) and get there statusLocation
3/ The response document of the process stored hasn't updated, but the process is done (if files are created, you can find them on the server). The response document of the first process is updated.
Additional Information
I tried to change the database sqlite with postgres, but the problem is the same. The process has updated inside pywps requests table, but not inside the response document.
Thanks for your job, my issues is solved.
Nice, thanks @davidcaron and @cehbrecht, great job.