Notify after post_backup_tasks #1632
Description
Made changes to notify function to deliver notifications based on the status of post_backup_tasks. Post Backup Tasks include pruning as well as BorgCheckJob(data consistency check) as referred to in the issue. This way user isnt spammed with different notifications and still notified for post backup jobs
Related Issue
#1632
Motivation and Context
A notification for when post backup jobs were completed, earlier only a log for completion of these jobs was delivered. Now a status based notification is delivered
How Has This Been Tested?
Backups were scheduled and after completion of post_backup_jobs expected notifications were delivered.
Screenshots (if appropriate):
Types of changes
- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
- [x] I have read the CONTRIBUTING guide.
- [x] My code follows the code style of this project.
- [ ] My change requires a change to the documentation.
- [ ] I have updated the documentation accordingly.
- [ ] I have added tests to cover my changes.
- [x] All new and existing tests passed.
I provide my contribution under the terms of the license of this repository and I affirm the Developer Certificate of Origin.
@m3nu @real-yfprojects please check this out