def get_workflow_info(self, workflow_file):

        if not workflow_file in list(self.manifest_dics.keys()):
            from orchestration.running import ExperimentRunner
            manifest_route = path.join(ExperimentRunner.get_manifest_folder(),
                                       workflow_file)
            cores, runtime, tasks = WorkflowGeneratorMultijobs.parse_all_jobs(
                manifest_route)
            self.manifest_dics[workflow_file] = {
                "cores": cores,
                "runtime": runtime,
                "tasks": tasks
            }

        return self.manifest_dics[workflow_file]
Beispiel #2
0
 def __init__(self, manifest):
     self._manifest = manifest
     from orchestration.running import ExperimentRunner
     man_dir = os.getenv("MANIFEST_DIR",
                         ExperimentRunner.get_manifest_folder())
     self._manifest = os.path.join(man_dir, self._manifest)