Data migrations ran multiple times during deploy

2023-01-06 Thread Harris Lapiroff
Hi, all! Curious about how folks do data migrations as we ran into an issue recently: Our production deployment consists of three containers running the application. When each container comes up it runs a series of startup tasks include `./manage.py migrate`. Usually it's fine to run this whenever

Re: Data migrations ran multiple times during deploy

2023-01-10 Thread Harris Lapiroff
Thanks, all for the responses! They're helpful, particularly: - Using a separate single service to run migrations - django-syzygy looks interesting and might also solve another issue we've been having lately trying to achieve zero-downtime deploys Best, Harris On Sunday, January 8, 202