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

Cancelled task (ON_ERROR_CANCEL hook) is displayed as failed task #688

Open
chrstphmr opened this issue Mar 3, 2025 · 0 comments
Open
Labels
bug Something isn't working

Comments

@chrstphmr
Copy link

For backups on a laptop, I'm using a CONDITION_SNAPSHOT_START hook with ping -c 1 to check if the SFTP host is reachable and cancel the backup otherwise. This cancels the job (as intended) but results to an inconsistent error signalling in the UI.

To Reproduce

  1. Create command hook that exits non-zero (e.g. /bin/false): CONDITION_SNAPSHOT_START and ON_ERROR_CANCEL
  2. Backup now.

Expected behavior
The task should show up as cancelled in the entire web UI.

This works as expected in the list view. In the tree view and side pane, however, it shows up as error/exclamation mark.
This seemingly wrong state can be fixed by clicking on 'Clear error history', which flips the state of this task switches from error to cancelled.

Platform Info

  • Linux amd64
  • Backrest Version 1.7.2@b885f1ec9e43e4bfe8f4f6f02bda83f5e7d88574
@chrstphmr chrstphmr added the bug Something isn't working label Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant