Watch this video on YouTube
Your Python web application running on App Engine needs to release database connections when it is being shutdown due to scaling down or updates. What's the correct way to handle this?