Skip to content

Conversation

@r4victor
Copy link
Collaborator

@r4victor r4victor commented Oct 24, 2025

Closes #3219

The PR makes each migration run in a separate transaction instead of all migrations running in one transaction. This fixes potential deadlocks during deployment caused by tables lock ordering not respected across all migrations.

@r4victor r4victor merged commit 28b5b10 into master Oct 24, 2025
28 checks passed
@r4victor r4victor deleted the issue_3219_postgres_migrations_deadlocks branch October 24, 2025 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Upgrading dstack server may lead to Postgres deadlocks in multi-replica deployments

2 participants