Skip to content
Snippets Groups Projects
Commit 076001d1 authored by Arie Peterson's avatar Arie Peterson
Browse files

Do pre-ping on pooled database connections

parent 3c572267
No related branches found
No related tags found
No related merge requests found
......@@ -62,6 +62,7 @@ app = Flask(__name__)
app.config["SECRET_KEY"] = SECRET_KEY
app.config["SQLALCHEMY_DATABASE_URI"] = SQLALCHEMY_DATABASE_URI
app.config["SQLALCHEMY_ENGINE_OPTIONS"] = {'pool_pre_ping': True}
app.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = SQLALCHEMY_TRACK_MODIFICATIONS
app.logger.setLevel(logging.INFO)
......
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