Skip to content

Commit

Permalink
Merge pull request #4511 from fuweid/13-cherry-pick-4486
Browse files Browse the repository at this point in the history
[realease/1.3] tasks: Monitor v2 tasks in initFunc as well
  • Loading branch information
dmcgowan committed Aug 29, 2020
2 parents f99bb2c + 58172a6 commit aebad1d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions services/tasks/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,13 @@ func initFunc(ic *plugin.InitContext) (interface{}, error) {
l.monitor.Monitor(t)
}
}
v2Tasks, err := l.v2Runtime.Tasks(ic.Context, true)
if err != nil {
return nil, err
}
for _, t := range v2Tasks {
l.monitor.Monitor(t)
}
return l, nil
}

Expand Down

0 comments on commit aebad1d

Please sign in to comment.