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

DEV: increase lock timeout for multisite migration #14831

Merged
merged 1 commit into from Nov 9, 2021
Merged

Conversation

SamSaffron
Copy link
Member

  • Increase lock timeout - given multisites may take a while to migrate
  • Ensure we do not check for status while db is migrating

- Increase lock timeout - given multisites may take a while to migrate
- Ensure we do not check for status while db is migrating
@SamSaffron SamSaffron merged commit 337ef60 into main Nov 9, 2021
@SamSaffron SamSaffron deleted the more-locking branch November 9, 2021 01:06
OsamaSayegh added a commit that referenced this pull request Nov 11, 2021
OsamaSayegh added a commit that referenced this pull request Nov 11, 2021
…14883)

* Revert "DEV: increase lock timeout for multisite migration (#14831)"

This partially reverts commit 337ef60.

We need to revert the mutex around `db:status:json` because the mutex is not available unless the rails environment is loaded which the `db:status:json` doesn't load before the mutex. We can't load the environment before entering the mutex because the mutex is meant to prevent other instances of the task from loading a rails environment while the database is migrating.

Co-authored-by: David Taylor <david@taylorhq.com>

Co-authored-by: David Taylor <david@taylorhq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants