Skip to content

Commit

Permalink
fix: adjust task priorities
Browse files Browse the repository at this point in the history
  • Loading branch information
garethgeorge committed May 5, 2024
1 parent 982e2fb commit 756e64a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions internal/orchestrator/repo/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions internal/orchestrator/tasks/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

Expand Down

0 comments on commit 756e64a

Please sign in to comment.