4643396: graceful shutdown tornado web server
Added 4 years ago by mywaiting
Simply to use SIGINT and SIGTERM to shutdown tornado web server gracefully.
When send the SIGINT and SIGTERM to the tornado server process, it will stop all http request, and then process all the callbacks and timeout events in IOLoop. After all, stop IOLoop and really shutdown.
Original by 生产环境下如何优雅地重启 Tornado
Make it to your code:
You can catch it @mywaiting in weibo.com
OR follow me in twitter @mywaiting