Jacob Coker-Dukowitz
05/06/2022, 6:07 PMPrisma Migrate makes use of advisory locking when you run production commands like: prisma migrate deploy
.
Therefore, if I call prisma migrate deploy
when my application is started, and there are multiple containers being deployed at the same time, other containers will sit on that advisory lock and not try to run migrations concurrently. Is that accurate?Petr Vnenk
05/06/2022, 6:41 PMJacob Coker-Dukowitz
05/06/2022, 8:40 PMJacob Coker-Dukowitz
05/06/2022, 9:09 PMSELECT sleep(15)
to confirm. Prisma will raise an error if a migration waits to acquire the advisory lock for more than 10 seconds. I think your right - these errors will confuse us in the long run, better to have a dedicated deployment for this.