Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
Fix with new plugins changes
Browse files Browse the repository at this point in the history
  • Loading branch information
EngHabu committed Oct 7, 2019
1 parent 6a143ea commit 0b49e4f
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 29 deletions.
56 changes: 28 additions & 28 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/controller/nodes/task/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ func (t Handler) Finalize(ctx context.Context, nCtx handler.NodeExecutionContext

func New(_ context.Context, kubeClient executors.Client, client catalog.Client, scope promutils.Scope) *Handler {
// TODO NewShould take apointer
async, err := catalog.NewAsyncClient(client, *catalog.GetConfig())
async, err := catalog.NewAsyncClient(client, *catalog.GetConfig(), scope.NewSubScope("catalog"))
if err != nil {
return nil
}
Expand Down
6 changes: 6 additions & 0 deletions pkg/controller/nodes/task/taskexec_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ type taskExecutionContext struct {
c pluginCatalog.AsyncClient
}

func (t *taskExecutionContext) EnqueueOwner() pluginCore.SignalOwner {
return func(ctx context.Context) {
t.NodeExecutionContext.EnqueueOwnerFunc()
}
}

func (t *taskExecutionContext) GetTaskRefreshIndicator() func() {
return func() {
_ = t.NodeExecutionContext.EnqueueOwnerFunc()
Expand Down

0 comments on commit 0b49e4f

Please sign in to comment.