From 756e64a2002aead213d67c8d37d851688af51168 Mon Sep 17 00:00:00 2001 From: Gareth Date: Sun, 5 May 2024 03:01:53 -0700 Subject: [PATCH] fix: adjust task priorities --- internal/orchestrator/repo/repo.go | 3 +-- internal/orchestrator/tasks/task.go | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/internal/orchestrator/repo/repo.go b/internal/orchestrator/repo/repo.go index f70cb979..4c845ed7 100644 --- a/internal/orchestrator/repo/repo.go +++ b/internal/orchestrator/repo/repo.go @@ -131,8 +131,7 @@ func (r *RepoOrchestrator) Backup(ctx context.Context, plan *v1.Plan, progressCa opts = append(opts, restic.WithFlags( "--exclude-caches", "--tag", TagForPlan(plan.Id), - "--tag", TagForInstance(r.config.Instance), - "--host", r.config.Instance), + "--tag", TagForInstance(r.config.Instance)), ) for _, exclude := range plan.Excludes { diff --git a/internal/orchestrator/tasks/task.go b/internal/orchestrator/tasks/task.go index fe59a645..5b104c7a 100644 --- a/internal/orchestrator/tasks/task.go +++ b/internal/orchestrator/tasks/task.go @@ -19,8 +19,8 @@ const ( TaskPriorityStats = -1 TaskPriorityDefault = 0 TaskPriorityInteractive = 1 << 1 - TaskPriorityIndexSnapshots = 1 << 2 - TaskPriorityForget = 1 << 3 + TaskPriorityForget = 1 << 2 + TaskPriorityIndexSnapshots = 1 << 3 TaskPriorityPrune = 1 << 4 )