Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Tx Service migrations execution dependencies #138

Merged
merged 3 commits into from
May 6, 2024

Conversation

falvaradorodriguez
Copy link
Contributor

Closes: #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.

@falvaradorodriguez falvaradorodriguez requested a review from a team as a code owner May 2, 2024 14:05
@falvaradorodriguez falvaradorodriguez requested review from Uxio0, moisses89 and hectorgomezv and removed request for a team and hectorgomezv May 2, 2024 14:05
Copy link
Member

@Uxio0 Uxio0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

txs-web should wait too until migrations are applied

@@ -4,8 +4,6 @@ set -e

echo "==> $(date +%H:%M:%S) ==> Starting up environment containers..."
docker compose up -d \
&& echo "==> $(date +%H:%M:%S) ==> Waiting for migrations... (may take a while)" \
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is no longer necessary since the services have a startup dependency after applying the migrations.

@falvaradorodriguez falvaradorodriguez merged commit 9472e7b into main May 6, 2024
2 checks passed
@falvaradorodriguez falvaradorodriguez deleted the fix-txs-migrations-execution-dependency branch May 6, 2024 15:06
@github-actions github-actions bot locked and limited conversation to collaborators May 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

First execution does not work as tx service migrations need to be run first
2 participants