Asyncpg conflicts with autocommit_block #1461
-
Describe the bug Expected behavior To Reproduce I've created a separated repo with reproducible examples: https://github.com/ionsome/alembic-asyncpg-concurrently-poc
After this logs examples stucks.
Versions.
Have a nice day! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Hi, I'm not sure how do you expect alembic to behave here. If the db requeires exclusive access on a table alembic can't automatically decide to terminate extra transactions. If you want to do that you can issue a command yourself using execute |
Beta Was this translation helpful? Give feedback.
-
this is an asyncpg thing. See sqlalchemy/sqlalchemy#11299 (comment) and sqlalchemy/sqlalchemy#11299 (comment) TLDR: use psycopg if you want to run migration concurrently to other connections |
Beta Was this translation helpful? Give feedback.
this is an asyncpg thing. See sqlalchemy/sqlalchemy#11299 (comment) and sqlalchemy/sqlalchemy#11299 (comment)
TLDR: use psycopg if you want to run migration concurrently to other connections