Re: [openstack-dev] [oslo_reports]Does GMR work for uwsgi mode service?

2017-03-08 Thread hao wang
Hi, Roman Thank you very much! It works well when I used file handle event to trigger a generation of a report instead of signals. Thanks again, Wang Hao 2017-03-07 18:56 GMT+08:00 Roman Podoliaka : > Hi, > > My understanding is that it's not recommended for WSGI apps

Re: [openstack-dev] [oslo_reports]Does GMR work for uwsgi mode service?

2017-03-07 Thread Roman Podoliaka
Hi, My understanding is that it's not recommended for WSGI apps to set up custom signal handlers. The reason for that is that a WSGI server (i.e. uwsgi in your case or Apache+mod_wsgi) will most likely have its own handlers for the very same set of signals [1]. There is an alternative way to

[openstack-dev] [oslo_reports]Does GMR work for uwsgi mode service?

2017-03-06 Thread hao wang
Hi, stackers, I'm trying to use Guru Meditation Report in Zaqar project which can support uwsgi server. I imported gmr and used "gmr.TextGuruMeditation.setup_autorun(version, conf=conf)", but it didn't work under uwsgi mode. Did I do something wrong, or GMR doesn't support uwsgi mode yet?