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

Always check and wait for a restore pg_restore to finish #1652

Merged

Conversation

rooftopcellist
Copy link
Member

SUMMARY

If the database is big enough in a backup, when restoring it, the restore role's pg_restore command can sometimes be at odds with the installer role of the new AWX instance (specifically when I tries to run migrations). This can result in some unpleasant db errors.

This resolves that by checking for the presence of an AWXRestore object with a deployment_name that matches, and waiting for it to complete before continuing the installer role.

ISSUE TYPE
  • Bug, Docs Fix or other nominal change

@rooftopcellist rooftopcellist force-pushed the restore-race-with-installer branch 2 times, most recently from 9c5b581 to 719e5fc Compare December 1, 2023 14:14
@rooftopcellist rooftopcellist force-pushed the restore-race-with-installer branch from 719e5fc to 74a4c02 Compare December 1, 2023 14:31
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