Set app.is_running to True

This commit is contained in:
messense 2017-03-15 00:07:42 +08:00
parent 7ca9116e37
commit 466b34735c
No known key found for this signature in database
GPG Key ID: BB41A8A2C716CCA9

View File

@ -40,6 +40,7 @@ class GunicornWorker(base.Worker):
try:
self.loop.run_until_complete(self._runner)
self.app.callable.is_running = True
trigger_events(self._server_settings.get('after_start', []),
self.loop)
self.loop.run_until_complete(self._check_alive())