gunicorn - Python API - Transparently reloading API handler in background -


i have handler can take several seconds load set of index files when instantiated. 1 handler can created per process. handler needs reloaded every few minutes consume additional files created since last started.

i trying find way transparently reload handler in background such api queries not waiting on load. existing api framework based in flask/gunicorn, have not found way load new workers before old ones killed (e.g. replace old workers after new ones have instantiated handlers).

any ideas or pointers? not opposed trying other gunicorn this.


Comments

Popular posts from this blog

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -

minify - Minimizing css files -