Skip to content

Commit

Permalink
partial revert - stop threaded check of alembic version (#25754)
Browse files Browse the repository at this point in the history
## Summary & Motivation
Revert partially the change to check alembic revision within the stamp
call from #25740

## How I Tested These Changes
BK
  • Loading branch information
prha authored Nov 5, 2024
1 parent 41e3e2a commit 010b63e
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions python_modules/dagster/dagster/_core/storage/sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,6 @@ def run_alembic_downgrade(

def stamp_alembic_rev(alembic_config: Config, conn: Connection, rev: str = "head") -> None:
with _alembic_lock:
migration_context = MigrationContext.configure(conn)
db_revision = migration_context.get_current_revision()
if db_revision is not None:
# sanity check that another thread hasn't stamped a revision
return
alembic_config.attributes["connection"] = conn
stamp(alembic_config, rev)

Expand Down

0 comments on commit 010b63e

Please sign in to comment.