mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-01-31 13:03:12 -05:00
fix: dispose AlchemyExporter engine after restore completes (#6942)
This commit is contained in:
@@ -239,6 +239,10 @@ class AlchemyExporter(BaseService):
|
||||
)
|
||||
connection.execute(text(dedent(sql)))
|
||||
|
||||
# Dispose this exporter's engine to release connections back to the database.
|
||||
# This prevents connection pool exhaustion when init_db.main() needs connections.
|
||||
self.engine.dispose()
|
||||
|
||||
# Re-init database to finish migrations
|
||||
init_db.main()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user