Skip to content
10 changes: 8 additions & 2 deletions view/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -554,12 +554,18 @@ func pausedStyle(p bool) ui.Style {
func (v *worker) Update() {
conn := v.a.GetWorkerConn(v.w, v.a.CA)
workerProfile := bfpb.NewWorkerProfileClient(conn)
profile, err := workerProfile.GetWorkerProfile(context.Background(), &bfpb.WorkerProfileRequest{})
profile, err := workerProfile.GetWorkerProfile(context.Background(), &bfpb.WorkerProfileRequest{
InstanceName: "shard",
WorkerName: v.w,
})
if err == nil {
v.profile = profile
}
c := bfpb.NewWorkerControlClient(conn)
r, err := c.PipelineChange(context.Background(), &bfpb.WorkerPipelineChangeRequest{})
r, err := c.PipelineChange(context.Background(), &bfpb.WorkerPipelineChangeRequest{
InstanceName: "shard",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The instance name is set in the app context: https://github.com/buildfarm/bf-client/blob/master/client/app.go#L19

WorkerName: v.w,
})
if err != nil {
panic(err)
}
Expand Down