Merge pull request #785 from youknowone/gunicorn

Gunicorn worker hints app weather it is being terminated
This commit is contained in:
Eli Uriegas 2017-06-09 11:00:12 -07:00 committed by GitHub
commit a399fb4044

View File

@ -159,6 +159,7 @@ class GunicornWorker(base.Worker):
def handle_quit(self, sig, frame):
self.alive = False
self.app.callable.is_running = False
self.cfg.worker_int(self)
def handle_abort(self, sig, frame):