def do_caching(self, parameters=None): if parameters is None: parameters = {} list_logs = self.get_list_logs() for key in self.init_parameters: if key not in parameters: parameters[key] = self.init_parameters[key] parquet_handler.do_caching(".", self.distr_log_path, list_logs, parameters=parameters)
def do_caching(): keyphrase = request.args.get('keyphrase', type=str) process = request.args.get('process', type=str) no_samples = request.args.get(PARAMETER_NO_SAMPLES, type=int, default=DEFAULT_MAX_NO_SAMPLES) if keyphrase == configuration.KEYPHRASE: parameters = {} parameters[PARAMETER_NO_SAMPLES] = no_samples parquet_handler.do_caching( SlaveVariableContainer.conf, process, SlaveVariableContainer.managed_logs[process], parameters=parameters) return jsonify({})