Skip to content

Show post-backup notification after tasks finish - #2571

Merged
m3nu merged 1 commit into
borgbase:masterfrom
ahmershahdev:post-backup-notification-timing
Oct 5, 2026
Merged

m3nu merged 1 commit into
borgbase:masterfrom
ahmershahdev:post-backup-notification-timing

Conversation

@ahmershahdev

Copy link
Copy Markdown
Contributor

The post-backup notification was shown before the queued tasks had finished.

This changes it to wait until all post-backup tasks are complete and report failure if any task fails. When there are no post-backup tasks to run, the notification is shown immediately as before.

Also fixes the notification message not being translated correctly and adds tests for these cases.

The macOS/Python 3.10 unit job crashes with a segfault in test_recording_a_skip_emits_jobs_changed. The same crash occurs on unchanged master, so it is unrelated to this PR.

Branch run: https://github.com/ahmershahdev/vorta/actions/runs/37209880973
Master run: https://github.com/ahmershahdev/vorta/actions/runs/37210485257

Fixes #2562

post_backup_tasks() queued the prune, archive refresh, check and compact jobs and showed "Post Backup Tasks successful" right away, before any of them had run. Now the notification is shown once all queued jobs have finished, as an error if one of them failed. With no follow-up jobs, it's still shown immediately.

This also fixes the message never being translated, since the profile name was formatted into the string before tr().

Fixes borgbase#2562
@m3nu
m3nu merged commit c14a801 into borgbase:master Oct 5, 2026
5 checks passed
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.

‘Post Backup Tasks Successful’ notification appears before the archive consistency check has finished

2 participants