From 15b157c5537884ae38573dab219d986f9d53f9b0 Mon Sep 17 00:00:00 2001 From: Richard Chapman Date: Wed, 20 Dec 2017 11:37:19 +0000 Subject: [PATCH] Added SQLALCHEMY settings to staging for db connections - Updated SQLALCHEMY_POOL_TIMEOUT timeout idle connections after 30 secs - Updated SQLALCHEMY_POOL_RECYCLE to receyle the connection every 5 mins --- app/config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/config.py b/app/config.py index 295adab1c..a8463ae63 100644 --- a/app/config.py +++ b/app/config.py @@ -414,6 +414,8 @@ class Staging(Config): API_RATE_LIMIT_ENABLED = True CHECK_PROXY_HEADER = True REDIS_ENABLED = True + SQLALCHEMY_POOL_TIMEOUT = 30 + SQLALCHEMY_POOL_RECYCLE = 300 API_KEY_LIMITS = { KEY_TYPE_TEAM: {