Fix pool recycle on MySQL
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Michel Roux 2020-04-11 14:34:34 +02:00
parent ded5d28a62
commit b811dcf19d
1 changed files with 3 additions and 0 deletions

View File

@ -35,4 +35,7 @@ if db_host:
)
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = True
app.config['SQLALCHEMY_ECHO'] = IS_DEBUG
app.config['SQLALCHEMY_ENGINE_OPTIONS'] = {
'pool_recycle': 200
}
db = SQLAlchemy(app)