mirror of
https://github.com/garethgeorge/backrest.git
synced 2025-12-13 09:15:39 +00:00
fix: adjust task priorities
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
@@ -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
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user