Skip to content

Instantly share code, notes, and snippets.

mywaiting /
Last active May 7, 2022
The example to how to shutdown tornado web server gracefully...
#!/usr/bin/env python
How to use it:
1. Just `kill -2 PROCESS_ID` or `kill -15 PROCESS_ID` , The Tornado Web Server Will shutdown after process all the request.
2. When you run it behind Nginx, it can graceful reboot your production server.
3. Nice Print in