Commit 3d3c55cf authored by Anthony Jacob's avatar Anthony Jacob
Browse files

pre ping not enough to avoid lost db connection. try new parameters

parent 34b1d762
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -21,7 +21,9 @@ db.init_app(app)
app.config['PROPAGATE_EXCEPTIONS'] = True
app.config['SQLALCHEMY_ENGINE_OPTIONS'] = {
    "pool_pre_ping": True,
    "pool_recycle": 1800,
    "pool_recycle": 300,
    "pool_size": 5,
    "max_overflow": 10,
}

babel = Babel(app)