Skip to content

Commit a2dda14

Browse files
authored
1 parent 1939665 commit a2dda14

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

settings.py

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ class Config(object):
77
PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__))
88
SQLALCHEMY_TRACK_MODIFICATIONS = False
99
SWAGGER_UI_DOC_EXPANSION = "list"
10+
# pool_pre_ping should help handle DB connection drops
11+
SQLALCHEMY_ENGINE_OPTIONS = {"pool_pre_ping": True}
1012

1113

1214
class ProductionConfig(Config):

0 commit comments

Comments
 (0)