def pre_process(): addresses = [(r.name, r.external) for r in self.workers] responses = multi_states_query(addresses) post_partitions = coalesce_partition_query_responses(responses) return (pre_partitions, post_partitions, workers)
def get_partition_data(self): logging.debug("get_partition_data()") addresses = [(w.name, w.external) for w in self.workers] responses = multi_states_query(addresses) return coalesce_partition_query_responses(responses)