Exemple #1
0
    def create_job_logs_path(cls, job_name, temp, persistence='default'):
        import conf

        if temp:
            check_or_create_path(conf.get('LOGS_ARCHIVE_ROOT'))
            return create_job_path(job_name, conf.get('LOGS_ARCHIVE_ROOT'))
        persistence_logs = cls.get_logs_path(persistence=persistence)
        return create_job_path(job_name, persistence_logs)
Exemple #2
0
 def create_job_outputs_path(cls, persistence, job_name):
     persistence_outputs = cls.get_outputs_path(persistence=persistence)
     values = job_name.split('.')
     path = create_job_path(job_name, persistence_outputs)
     path = os.path.join(path, values[-1])
     if not os.path.isdir(path):
         create_path(path)
     return path