I'm using this approach to talk to an external database in my alembic migration. I can run SELECT
statements and read data from the other database, but the alembic migration always ends up hanging after running my statements. I've noticed that removing...
Session = sessionmaker(bind=engine)
session = Session()
... fixes the issue, but I obviously can't do much without that.
I see no errors, what could be going on?