[PyWPS-dev] Daemon for async process execution

Jachym Cepicky jachym.cepicky at gmail.com
Sat Sep 28 12:56:37 PDT 2019


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


More information about the pywps-dev mailing list