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

SqliteDosStorage: Implement the storage backup #6370

Merged
merged 2 commits into from
May 7, 2024

Conversation

sphuber
Copy link
Contributor

@sphuber sphuber commented Apr 24, 2024

No description provided.

@sphuber sphuber force-pushed the feature/sqlite-dos-storage-backup branch from 3bffcf3 to 28fede4 Compare April 24, 2024 13:39
@sphuber sphuber added the priority/critical-blocking must be resolved before next release label Apr 26, 2024
@sphuber sphuber force-pushed the feature/sqlite-dos-storage-backup branch from 28fede4 to de0ed6b Compare May 3, 2024 21:16
The `PsqlDosBackend` storage plugin was manually performing the check
whether the profile that was about to be backed up was not locked. From
a safety consideration, it is better to perform this check in the base
class so that it is not accidentally forgotten by a plugin.
@sphuber sphuber force-pushed the feature/sqlite-dos-storage-backup branch 2 times, most recently from 4bf8fa4 to 99a3bed Compare May 5, 2024 19:44
@sphuber sphuber requested a review from mbercx May 5, 2024 20:21
Copy link
Collaborator

@danielhollas danielhollas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I took this for a spin, since I wanted to try the new verdi storage backup command. Works great!

The implementation here seems pretty straightforward, thank you for doing the refactoring that makes it clearer. I only have some nits, my main question is about the profile locking -- is the profile locked when the backup is running?

tests/storage/sqlite_dos/test_backend.py Show resolved Hide resolved
tests/storage/sqlite_dos/test_backend.py Outdated Show resolved Hide resolved
src/aiida/storage/sqlite_dos/backend.py Show resolved Hide resolved
src/aiida/storage/sqlite_dos/backend.py Show resolved Hide resolved
@sphuber sphuber force-pushed the feature/sqlite-dos-storage-backup branch from 99a3bed to caf876c Compare May 7, 2024 18:05
@sphuber sphuber requested a review from danielhollas May 7, 2024 18:05
@sphuber sphuber merged commit 18e447c into aiidateam:main May 7, 2024
18 of 19 checks passed
@sphuber sphuber deleted the feature/sqlite-dos-storage-backup branch May 7, 2024 23:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority/critical-blocking must be resolved before next release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants