illinois-cs241 / broadway

A distributed systems framework used running distributable workloads.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Worker stats are reset when workers reconnect through websocket

zhengyao-lin opened this issue · comments

The problem is in the websocket handler

def handler_register(self, hostname):

It's creating a completely new model.WorkerNode every time which resets a bunch of fields to their initial values. The correct behavior should be first checking if there exists one node with the given id then only update altered fields (hostname, etc.)