Skip to content
Snippets Groups Projects
Commit 6d3ccce8 authored by Stephan Porada's avatar Stephan Porada :speech_balloon:
Browse files

Fix QueuePool size timeout error.

parent 202ab2e0
No related branches found
No related tags found
No related merge requests found
...@@ -31,6 +31,8 @@ class DevelopmentConfig(Config): ...@@ -31,6 +31,8 @@ class DevelopmentConfig(Config):
DEBUG = True DEBUG = True
''' ### Flask-SQLAlchemy ### ''' ''' ### Flask-SQLAlchemy ### '''
SQLALCHEMY_ENGINE_OPTIONS = {'pool_size': 30,
'pool_timeout': 30}
SQLALCHEMY_DATABASE_URI = 'postgresql://{}:{}@db/{}'.format( SQLALCHEMY_DATABASE_URI = 'postgresql://{}:{}@db/{}'.format(
os.environ.get('POSTGRES_USER'), os.environ.get('POSTGRES_USER'),
os.environ.get('POSTGRES_PASSWORD'), os.environ.get('POSTGRES_PASSWORD'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment