Prevent migrations from running in parallel #360
Replies: 2 comments 5 replies
-
Hi, does running |
Beta Was this translation helpful? Give feedback.
-
We have the same question, and looking at the migration source I'm not seeing anything that would indicate it has any protection for clustered deployments. Flyway has this in their FAQ:
which is the sort of thing I was hoping to see implemented here. Maybe I missed it? |
Beta Was this translation helpful? Give feedback.
-
I have an application that runs migrations automatically at startup. However, in certain cases multiple instances of an application might be started at the same time, and that leads to conflicts (e.g. an instance fails because some table already exists).
What is the recommended way of dealing with this?
Driver:
tokio-postgres
.Beta Was this translation helpful? Give feedback.
All reactions