scottbishopdev / RoverInterviewProject

A project I completed in about two weeks while interviewing for Rover.com in 2018. This is a re-upload of my original Rover_Interview_Project repo.
GNU General Public License v3.0
0 stars 0 forks source link

Implement graceful shutdown for server #22

Open scottbishopdev opened 4 years ago

scottbishopdev commented 4 years ago

Lots of modern tools and environments are going to expect the process to be able to gracefully and quickly terminate upon receiving a "SIGTERM" command, otherwise, they'll forcefully kill it, which can result in bad stuff like stale database connections. Currently, the express server will just keep running... forever. We should fix that by implementing some logic to gracefully shut down.