Merge pull request #4486 from darfux/monitor_v2_tasks_as_well
tasks: Monitor v2 tasks in initFunc as well
This commit is contained in:
commit
0586589652
@ -118,6 +118,13 @@ func initFunc(ic *plugin.InitContext) (interface{}, error) {
|
|||||||
l.monitor.Monitor(t)
|
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
|
return l, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user