less nesting
This commit is contained in:
@ -114,7 +114,8 @@ def work(backend_address, accumulator_host, accumulator_port, visualisation_host
|
||||
print(f"({pulseid}) problem ({e}) to read peakfinder parameters file, worker : {worker}", flush=True)
|
||||
|
||||
events = dict(poller.poll(2000)) # check every 2 seconds in each worker
|
||||
if backend_socket in events:
|
||||
if backend_socket not in events:
|
||||
continue
|
||||
|
||||
metadata = backend_socket.recv_json(FLAGS)
|
||||
image = backend_socket.recv(FLAGS, copy=False, track=False)
|
||||
|
Reference in New Issue
Block a user