log_info("Retrieved finished request %d / %d" % (iter_no, req_portion))
if req.error:
log_info("Error found on request: IT %d PORTION %d, WORKER %s:%d" %
(iter_no, req_portion, sc.host, sc.port))
results[req_portion] = pickle.loads(req.value)
self.pending_requests.remove((sc, req_portion, req))
self.free_services.append(sc)
After Change
// delete the temporary ranker dump when the 1st iteration is complete
if self.ranker_dump_path:
os.remove(self.ranker_dump_path)
self.ranker_dump_path = None
// gather/average the diagnostic statistics
self.loc_ranker.set_diagnostics_average([d for _, d in results])