Add some better balancing, reconnection

This commit is contained in:
Barak Michener 2020-12-04 22:40:50 -08:00
parent 715f79c9c0
commit 324ba0d160
6 changed files with 77 additions and 29 deletions

View file

@ -59,6 +59,7 @@ func (r *Raylet) Workstream(conn WorkstreamConnection) error {
workChan: make(chan *ray_rpc.Work),
clientConn: conn,
pool: r.Workers,
max: 3,
}
r.Workers.Register(worker)
err := worker.Run()