-
Notifications
You must be signed in to change notification settings - Fork 147
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
Fix for Validation Interval can be set more frequent than Backup Interval #2207
base: master
Are you sure you want to change the base?
Conversation
- Fixed: minimum value stuck at previous minimum of the backup periodic interval count regardless of change in backup method
I realized this issue affects other units as well. So, I added checks for all units and ensured that the minimum value restriction applies only to 'Backup periodically' |
What are the issues you talk about here? |
@m3nu The issue is actually handled, and there shouldn't be any issues with normal functioning of Vorta, my PR adds the logical consistency at UI level. Please do correct me if I'm wrong somewhere. |
I see 2 options here:
Not sure which one is better. |
@m3nu TEST PROCESSI intialized a new borg repo with
So it's properly handled in the borg's end. In
I ran a small python script to check/validate the output of borg repo without any backups again, to see if any issues popped up. import subprocess
import os
repo_path = os.path.expanduser('~/Music/bbbb')
cmd = ['borg', 'check', '--info', '--log-json', '--progress', repo_path]
try:
result = subprocess.run(cmd, check=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
print("Borg check: SUCCESS")
print(result.stdout)
except subprocess.CalledProcessError as e:
print(f"Borg check: FAILED ==> {e}")
print(e.stderr) Output was Also, the process will be logged as:
CONCLUSION
Since it seems more logical to not include these changes in the final implementation, I suggest either closing or marking this PR as a draft for future discussion. |
Thanks for testing! Good to know. |
Description
This PR resolves the issue in the Schedule Tab where the Validate Interval QSpinBox allowed users to set the validation schedule to run more frequently than the backup schedule. This behavior was problematic since validation (using BorgCheckJob) only runs after a backup, meaning that it shouldn't be scheduled more frequently than the backup itself.
With this change, Vorta now ensures that the validation interval cannot be set to a value smaller than the backup interval, enforcing a more logical and consistent scheduling behavior.
Related Issue
Resolves #1971
Motivation and Context
How Has This Been Tested?
Discussion:
on_validation_change()
to/src/vorta/views/schedule_page.py
.'week'
.on_scheduler_change()
function to ensure this validation runs when the scheduler count or unit is changed.Types of changes
Checklist:
I provide my contribution under the terms of the license of this repository and I affirm the Developer Certificate of Origin.