From 466b34735c02779ff9acbade8e278a589b39c108 Mon Sep 17 00:00:00 2001 From: messense Date: Wed, 15 Mar 2017 00:07:42 +0800 Subject: [PATCH] Set app.is_running to True --- sanic/worker.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sanic/worker.py b/sanic/worker.py index c0825ac7..3312b485 100644 --- a/sanic/worker.py +++ b/sanic/worker.py @@ -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())