Closed ferdinandhubbard981 closed 2 years ago
What i mean is: If a worker shuts down e.g. power loss to machine. Does the broker recognise the disconnection, or does it only recognise a disconnection if it receives a response saying the worker has disconnected 'cleanly'
It doesn't recognise that kind of quitting. Only when the worker sends a 14 day resignation notice by virtue of WorkerQuit.
for workers, SIGINT or control c sends a worker disconnect request
crtl-c. then run it again. it works currently
Workers are added to a map, with incrementing global ID. Every turn, the unique worker keys are serialised and compared to the acknowledged workers. If they are not the same, then we reallocate work again so that it's evenly split