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

feat: run cas migrations in init container #96

Merged
merged 1 commit into from
Oct 19, 2023

Conversation

smrz2001
Copy link
Collaborator

This PR adds an init container to run knex migrations before CAS services start.

Occasionally, the CAS API and worker will get stuck on the migrations table, which gets locked. Better to run the migrations ahead of time so that neither service needs to run them during startup.

@smrz2001 smrz2001 requested a review from nathanielc October 18, 2023 22:54
@smrz2001 smrz2001 self-assigned this Oct 18, 2023
@smrz2001 smrz2001 force-pushed the feat/init-cas-migrations branch from 8da8988 to 7fc5c1c Compare October 18, 2023 23:02
@smrz2001 smrz2001 added this pull request to the merge queue Oct 19, 2023
Merged via the queue into main with commit 69b3591 Oct 19, 2023
5 checks passed
@smrz2001 smrz2001 deleted the feat/init-cas-migrations branch October 19, 2023 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants