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

Commit

Permalink
dispatcher
Browse files Browse the repository at this point in the history
Signed-off-by: Future Outlier <[email protected]>
  • Loading branch information
Future Outlier committed Sep 27, 2023
1 parent 5b9852b commit f06c395
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion go/tasks/pluginmachinery/internal/webapi/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func (c CorePlugin) Handle(ctx context.Context, tCtx core.TaskExecutionContext)

taskTemplate, err := tCtx.TaskReader().Read(ctx)

if taskTemplate.Type == "requester" {
if taskTemplate.Type == "dispatcher" {
res, err := c.sp.Do(ctx, tCtx)
if err != nil {
return core.UnknownTransition, err
Expand Down
2 changes: 1 addition & 1 deletion go/tasks/plugins/webapi/agent/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func (p Plugin) Do(ctx context.Context, taskCtx webapi.TaskExecutionContextReade
// we can get the task type in core.go
/*
taskTemplate, err := taskCtx.TaskReader().Read(ctx)
taskTemplate.type = spark, requester ...
taskTemplate.type = spark, dispatcher ...
*/
func (p Plugin) Create(ctx context.Context, taskCtx webapi.TaskExecutionContextReader) (webapi.ResourceMeta,
webapi.Resource, error) {
Expand Down

0 comments on commit f06c395

Please sign in to comment.