fix: adjust task priorities

This commit is contained in:
Gareth
2024-05-05 03:01:53 -07:00
parent 982e2fb2cd
commit 756e64a200
2 changed files with 3 additions and 4 deletions

View File

@@ -131,8 +131,7 @@ func (r *RepoOrchestrator) Backup(ctx context.Context, plan *v1.Plan, progressCa
opts = append(opts, restic.WithFlags( opts = append(opts, restic.WithFlags(
"--exclude-caches", "--exclude-caches",
"--tag", TagForPlan(plan.Id), "--tag", TagForPlan(plan.Id),
"--tag", TagForInstance(r.config.Instance), "--tag", TagForInstance(r.config.Instance)),
"--host", r.config.Instance),
) )
for _, exclude := range plan.Excludes { for _, exclude := range plan.Excludes {

View File

@@ -19,8 +19,8 @@ const (
TaskPriorityStats = -1 TaskPriorityStats = -1
TaskPriorityDefault = 0 TaskPriorityDefault = 0
TaskPriorityInteractive = 1 << 1 TaskPriorityInteractive = 1 << 1
TaskPriorityIndexSnapshots = 1 << 2 TaskPriorityForget = 1 << 2
TaskPriorityForget = 1 << 3 TaskPriorityIndexSnapshots = 1 << 3
TaskPriorityPrune = 1 << 4 TaskPriorityPrune = 1 << 4
) )