def file_strategy(self, job_id, metrics):
    'Delete all trial files which were generated through a hpo trial\n            It deletes all files in the output_path related to the job_id\n\n        Args:\n            job_id (str): Sherpa Job_ID / Argo trial workflow name\n            metrics (dict): metrics to compare\n        '
    if (job_id in self.trials):
        trial = self.trials[job_id]
        if ('output_path' in trial):
            if (self.storage_strategy == 'delete'):
                delete_s3_objects(trial['output_path'])
            elif (self.storage_strategy == 'best'):
                if (self.best_metric['metric'] == None):
                    self.best_metric['metric'] = metrics[self.objective]
                    self.best_metric['job_id'] = job_id
                elif ((self.lower_is_better == True) and (metrics[self.objective] < self.best_metric['metric'])):
                    delete_s3_objects(self.trials[self.best_metric['job_id']]['output_path'])
                    self.best_metric['metric'] = metrics[self.objective]
                    self.best_metric['job_id'] = job_id
                    logging.info('New best trial {} with metric {}'.format(self.best_metric['job_id'], self.best_metric['metric']))
                elif ((self.lower_is_better == False) and (metrics[self.objective] > self.best_metric['metric'])):
                    delete_s3_objects(self.trials[self.best_metric['job_id']]['output_path'])
                    self.best_metric['metric'] = metrics[self.objective]
                    self.best_metric['job_id'] = job_id
                    logging.info('New best trial {} with metric {}'.format(self.best_metric['job_id'], self.best_metric['metric']))
                else:
                    delete_s3_objects(trial['output_path'])
Delete all trial files which were generated through a hpo trial
    It deletes all files in the output_path related to the job_id

Args:
    job_id (str): Sherpa Job_ID / Argo trial workflow name
    metrics (dict): metrics to compare
def file_strategy(self, job_id, metrics):
    'Delete all trial files which were generated through a hpo trial\n            It deletes all files in the output_path related to the job_id\n\n        Args:\n            job_id (str): Sherpa Job_ID / Argo trial workflow name\n            metrics (dict): metrics to compare\n        '
    if (job_id in self.trials):
        trial = self.trials[job_id]
        if ('output_path' in trial):
            if (self.storage_strategy == 'delete'):
                delete_s3_objects(trial['output_path'])
            elif (self.storage_strategy == 'best'):
                if (self.best_metric['metric'] == None):
                    self.best_metric['metric'] = metrics[self.objective]
                    self.best_metric['job_id'] = job_id
                elif ((self.lower_is_better == True) and (metrics[self.objective] < self.best_metric['metric'])):
                    delete_s3_objects(self.trials[self.best_metric['job_id']]['output_path'])
                    self.best_metric['metric'] = metrics[self.objective]
                    self.best_metric['job_id'] = job_id
                    logging.info('New best trial {} with metric {}'.format(self.best_metric['job_id'], self.best_metric['metric']))
                elif ((self.lower_is_better == False) and (metrics[self.objective] > self.best_metric['metric'])):
                    delete_s3_objects(self.trials[self.best_metric['job_id']]['output_path'])
                    self.best_metric['metric'] = metrics[self.objective]
                    self.best_metric['job_id'] = job_id
                    logging.info('New best trial {} with metric {}'.format(self.best_metric['job_id'], self.best_metric['metric']))
                else:
                    delete_s3_objects(trial['output_path'])