mirror of
https://github.com/garethgeorge/backrest.git
synced 2025-12-12 16:55:39 +00:00
feat: support nice/ionice as a repo setting (#309)
This commit is contained in:
@@ -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())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user