Great thanks. Richard Collins http://richardc.net
On 4 November 2013 07:29, Roberto De Ioris <[email protected]> wrote: > > > I switched to using pip for building uwsgi and now @timer is firing. > > When I use @timer, reloads and SIGINT are handled promptly. So that is my > > problem solved. > > > > > > However if I use @rbtimer I still get the behaviour where the the reload > > and SIGINT seem to have to wait until after the timer has expired before > > being handled. Here is the config: > > > > [uwsgi] > > master = true > > processes = 1 > > threads = 4 > > virtualenv = /home/richardc/business/therivermouth/ttt/v > > pythonpath = /home/richardc/business/therivermouth/ttt/v > > touch-reload = /home/richardc/business/therivermouth/ttt/v > > module = hello > > callable = app > > socket = 127.0.0.1:7000 > > catch-exceptions = true > > > > Here is the minimal python code: > > > > from flask import Flask > > from uwsgidecorators import * > > > > app = Flask(__name__) > > > > @rbtimer(30) > > def ttt(num): > > print 'timer' > > > > > > @app.route("/") > > def hello(): > > return "hellooo" > > > > > > > > Richard Collins > > http://richardc.net > > > Hi, this patch should address it: > > > https://github.com/unbit/uwsgi/commit/c9ca14df4dd1cfbc52bcf9f9dda21f3ebb34bc78 > > > Thanks a lot > > > -- > Roberto De Ioris > http://unbit.it > _______________________________________________ > uWSGI mailing list > [email protected] > http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi >
_______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
