Check pooled database connections before reusing them
All checks were successful
continuous-integration/drone/pr Build is passing

Fixes #43
This commit is contained in:
2025-08-26 13:25:40 +02:00
committed by Brain
parent bc595a77ce
commit 4c88ee4c06

2
app.py
View File

@@ -38,7 +38,7 @@ app.config["KI_LDAP_AUTH_PASSWORD"] = os.getenv("KI_LDAP_AUTH_PASSWORD")
app.config["KI_LDAP_BASE_DN"] = os.getenv("KI_LDAP_BASE_DN")
CORS(app)
db = SQLAlchemy(app, session_options={"future": True})
db = SQLAlchemy(app, session_options={"future": True}, engine_options={"pool_pre_ping": True})
migrate = Migrate(app, db, compare_type=True)
app.logger.info("Hello from KI")