add graceful_shutdown_timeout to gunicorn worker

This commit is contained in:
Yun Xu
2017-06-25 00:51:14 -07:00
parent 5c19eb34bf
commit d812affef0
4 changed files with 28 additions and 2 deletions

View File

@@ -701,7 +701,8 @@ class Sanic:
'backlog': backlog,
'has_log': has_log,
'websocket_max_size': self.config.WEBSOCKET_MAX_SIZE,
'websocket_max_queue': self.config.WEBSOCKET_MAX_QUEUE
'websocket_max_queue': self.config.WEBSOCKET_MAX_QUEUE,
'graceful_shutdown_timeout': self.config.GRACEFUL_SHUTDOWN_TIMEOUT
}
# -------------------------------------------- #