From 6d3ccce83fcc9020596fad8b9a212d31fe5bb43d Mon Sep 17 00:00:00 2001 From: Stephan Porada Date: Tue, 24 Sep 2019 16:16:55 +0200 Subject: [PATCH] Fix QueuePool size timeout error. --- config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config.py b/config.py index 1177ded2..737d5668 100644 --- a/config.py +++ b/config.py @@ -31,6 +31,8 @@ class DevelopmentConfig(Config): DEBUG = True ''' ### Flask-SQLAlchemy ### ''' + SQLALCHEMY_ENGINE_OPTIONS = {'pool_size': 30, + 'pool_timeout': 30} SQLALCHEMY_DATABASE_URI = 'postgresql://{}:{}@db/{}'.format( os.environ.get('POSTGRES_USER'), os.environ.get('POSTGRES_PASSWORD'),