[PyWPS-dev] Daemon for async process execution

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[PyWPS-dev] Daemon for async process execution

Jachym Cepicky
I'm thinking about implementing Deamon process for better asynchronous
process execution.

NOW:

Async process is executed, and looks into the queue, if there is not
wating anything to be executed again.

Cons: sharing memory, if something really fails, next processes is not
taken out from the queue, process instance train

Planned:

Async processes are just stored in the dblog

Daemon checks every e.g. 30 sec, if there is something to be executed,
creates new processes in seperate thread (multiprocessing) and waits
another 30sec

Pros: new process instance does have nothing in common with any
previews one. the acts of storing requests into dblog and processing
them are independant

________________________________

Questions:

Should user start the deamon manually, similar to Service instance?
should the deamon be lounched as part of Service?

Comments?

J

--
Jachym Cepicky
e-mail: jachym.cepicky gmail com
URL: http://les-ejk.cz
GPG: http://les-ejk.cz/pgp/JachymCepicky.pgp
_______________________________________________
pywps-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/pywps-dev