fix: dispose AlchemyExporter engine after restore completes (#6942)

This commit is contained in:
Hayden
2026-01-30 09:54:38 -06:00
committed by GitHub
parent 37e6123f9e
commit 9738d9f363

View File

@@ -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()