Skip to content

Commit

Permalink
remove workers from ui status on error
Browse files Browse the repository at this point in the history
  • Loading branch information
dmah42 committed May 31, 2022
1 parent 56a71b0 commit 93742b5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cmd/ui/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,14 +150,15 @@ func handleDiscoveryAcks(ctx context.Context, addrs <-chan string) {

stat, err := s.Client.Status(ctx, &pb.StatusRequest{})
if err != nil {
glog.Warning(err)
glog.Warningf("Removing %s: %s", s.Id, err)
status.Lock()
delete(status.status, s.Id)
status.Unlock()
}
glog.Infof("Status of %s: %+v", s.Id, stat)
status.Lock()
status.status[s.Id] = stat
status.Unlock()

// TODO: remove old worker
}
}

Expand Down

0 comments on commit 93742b5

Please sign in to comment.