Skip to content

Make verdi daemon stop database backend independent#1231

Merged
sphuber merged 1 commit into
aiidateam:workflowsfrom
sphuber:fix_1230_verdi_daemon_stop_db_migration
Mar 7, 2018
Merged

Make verdi daemon stop database backend independent#1231
sphuber merged 1 commit into
aiidateam:workflowsfrom
sphuber:fix_1230_verdi_daemon_stop_db_migration

Conversation

@sphuber
Copy link
Copy Markdown
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