Merge pull request #785 from youknowone/gunicorn
Gunicorn worker hints app weather it is being terminated
This commit is contained in:
commit
a399fb4044
|
@ -159,6 +159,7 @@ class GunicornWorker(base.Worker):
|
||||||
|
|
||||||
def handle_quit(self, sig, frame):
|
def handle_quit(self, sig, frame):
|
||||||
self.alive = False
|
self.alive = False
|
||||||
|
self.app.callable.is_running = False
|
||||||
self.cfg.worker_int(self)
|
self.cfg.worker_int(self)
|
||||||
|
|
||||||
def handle_abort(self, sig, frame):
|
def handle_abort(self, sig, frame):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user