> Hey, > > what's the best way to somehow signal that the worker handling a request > should be killed > (and respawned by the master, of course) after finishing up with the > current request, from Python code? > > My use case is something like > > def application(environ, start_response): > try: > # ... > except TerribleError: # Can only recover from this by reloading the > worker > uwsgi.reload_me() # or whatever > start_response(...) > return ["Oops!"] > > - Aarni > > _______________________________________________ > uWSGI mailing list > [email protected] > http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi >
sys.exit(1) -- Roberto De Ioris http://unbit.it _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
