feat: support nice/ionice as a repo setting (#309)

This commit is contained in:
Gareth
2024-05-31 23:05:23 -07:00
committed by GitHub
parent 43fb254f22
commit 0c9f366e43
17 changed files with 1011 additions and 439 deletions

View File

@@ -1,13 +1,16 @@
package orchestrator
import (
"context"
"time"
v1 "github.com/garethgeorge/backrest/gen/go/v1"
"github.com/garethgeorge/backrest/internal/hook"
"github.com/garethgeorge/backrest/internal/oplog"
"github.com/garethgeorge/backrest/internal/orchestrator/logging"
"github.com/garethgeorge/backrest/internal/orchestrator/repo"
"github.com/garethgeorge/backrest/internal/orchestrator/tasks"
"go.uber.org/zap"
)
// taskRunnerImpl is an implementation of TaskRunner for the default orchestrator.
@@ -117,3 +120,7 @@ func (t *taskRunnerImpl) Config() *v1.Config {
t.config = t.orchestrator.Config()
return t.config
}
func (t *taskRunnerImpl) Logger(ctx context.Context) *zap.Logger {
return logging.Logger(ctx).Named(t.t.Name())
}