production server gunicorn does not start threads
if the background threads like StoreData
, UserListManager
, PipeLogReader
are started in the main of webserver.py
,
they do not run with the production server gunicorn.
To get them working with gunicorn in necessary to initialize them inside the wsgi app.
Basic code example for this is in:
webserver_new.py
For more details see also:
http://stackoverflow.com/questions/14384739/how-can-i-add-a-background-thread-to-flask