Fix QueuePool size timeout error.

This commit is contained in:
Stephan Porada 2019-09-24 16:16:55 +02:00
parent 202ab2e0de
commit 6d3ccce83f

View File

@ -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'),