safe-global / safe-infrastructure

One `docker-compose.yml` file to rule them all
MIT License
56 stars 92 forks source link

Fix Tx Service migrations execution dependencies #138

Closed falvaradorodriguez closed 4 months ago

falvaradorodriguez commented 4 months ago

Closes: https://github.com/safe-global/safe-infrastructure/issues/135

To start the txs-worker-notifications-webhooks and txs-worker-contracts-tokens services is needed the database ready and with the migrations executed.

For this, a Celery healthcheck validation is added in the service that executes the migrations. Celery is executed once the migrations are finished.

Then the dependent services are started when the Celery healthcheck is ok.