def start_snapshot_service(reply_port, publish_port): header_file_map = {} header_file_map['test_file'] = "./test_file.txt" working_directory = "./tmp" service = SnapshotService(header_file_map, working_directory, reply_port, publish_port) service.run() return
def get_response(self, request): result = "" if request == "force_update": # NOTE: This call will return right away, *not* when the update is # finished. self.publisher.publish("force_pull") self.ratchet_hub.log_info(self.name, "Published force_pull") else: result = SnapshotService.get_response(self, request) return result