in cdsresponder/cds/cds_launcher.py [0:0]
def load_job_template(self):
filepath = self.find_job_template()
logger.debug("Loading job template from {0}".format(filepath))
loaded = load_full_yaml(filepath)
if len(loaded)==0:
raise ValueError("Nothing was defined in cdsjob.yaml")
jobs = [x for x in loaded if isinstance(x, Job)]
if len(jobs)==0:
raise ValueError("Of {0} objects defined in cdsjob.yaml, none of them was a Job".format(len(loaded)))
return jobs[0]