Description
Hi Guys
We are running the Oro Platform on multiple servers and are running into an issue when we deploy.
To insure migrations are run and new assets are generated at the same time as the new code is deployed, we run oro:platform:update
on each server on each deploy. Occasionally one of our servers will fail to deploy because of a race condition in oro:platform:update
which results in:
[Oro\Bundle\EntityConfigBundle\Exception\RuntimeException]
A model for "Oro\Bundle\AddressBundle\Entity\AddressType" was not found. Config models are locked.
oro:entity-config:cache:warmup ...
I raised another ticket about load balanced environments and was pointed to https://oroinc.com/orocrm/doc/current/dev-guide/scale-nodes but it does not seem to deal with deployments and how you would run oro:platform:update
.
What is the suggested method for making sure assets are generated and migrations run in a multi server deploy without running into the above (and potentially other) race conditions?
Cheers
Luke