Commit 792c713a authored by Konstantin Schulz's avatar Konstantin Schulz

fixed SQLalchemy session options

parent ae075c0a
Pipeline #12424 passed with stages
in 3 minutes
......@@ -19,7 +19,7 @@ from open_alchemy import init_yaml
from mcserver.config import Config
# remove stale connections from the connection pool after 1 hour
db: SQLAlchemy = SQLAlchemy(session_options={"pool_recycle": 3600}) # session_options={"autocommit": True}
db: SQLAlchemy = SQLAlchemy() # session_options={"autocommit": True, "pool_recycle": 3600}
migrate: Migrate = Migrate(directory=Config.MIGRATIONS_DIRECTORY)
if not hasattr(open_alchemy.models, Config.DATABASE_TABLE_CORPUS):
# do this _BEFORE_ you add any APIs to your application
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment