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

Make verdi daemon stop database backend independent #1231

Merged

Conversation

sphuber
Copy link
Contributor

@sphuber sphuber commented Mar 7, 2018

Fixes #1230

When the database needs to be migrated, the user will be presented with
the instruction to call verdi daemon stop to make sure it is not running.
To not have that raise the same error, it needs to run without loading
the database environment. It only needs the configuration, which should
also not need the backend. Note that we also had to move the definition
of the USE_TZ because importing it led to the check of AIIDADB_PROFILE
being set which requires the backend to be loaded, however, USE_TZ does
not depend on the profile nor backend. So we just moved it out

@sphuber sphuber requested a review from DropD March 7, 2018 12:32
@sphuber sphuber force-pushed the fix_1230_verdi_daemon_stop_db_migration branch from 5c1ee73 to 27ccf84 Compare March 7, 2018 12:57
When the database needs to be migrated, the user will be presented with
the instruction to call verdi daemon stop to make sure it is not running.
To not have that raise the same error, it needs to run without loading
the database environment. It only needs the configuration, which should
also not need the backend. Note that we also had to move the definition
of the USE_TZ because importing it led to the check of AIIDADB_PROFILE
being set which requires the backend to be loaded, however, USE_TZ does
not depend on the profile nor backend. So we just moved it out
@sphuber sphuber force-pushed the fix_1230_verdi_daemon_stop_db_migration branch from 27ccf84 to b3fe944 Compare March 7, 2018 13:04
@sphuber sphuber merged commit c7f0cdb into aiidateam:workflows Mar 7, 2018
@sphuber sphuber deleted the fix_1230_verdi_daemon_stop_db_migration branch March 7, 2018 13:54
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