Example #1
0
 def generate_jobs(self, context):
     job_specs = self.jobs_config.generate_job_specs(context.tm)
     exec_order = self.run_config.execution_order
     log.indent()
     for spec, i in permute_iterations(job_specs, exec_order):
         job = Job(spec, i, context)
         job.load(context.tm.target)
         self._jobs.append(job)
         context.run_state.add_job(job)
     log.dedent()
     self._jobs_generated = True
Example #2
0
 def generate_jobs(self, context):
     job_specs = self.jobs_config.generate_job_specs(context.tm)
     if not job_specs:
         msg = 'No jobs available for running.'
         raise ConfigError(msg)
     exec_order = self.run_config.execution_order
     log.indent()
     for spec, i in permute_iterations(job_specs, exec_order):
         job = Job(spec, i, context)
         job.load(context.tm.target)
         self._jobs.append(job)
         context.run_state.add_job(job)
     log.dedent()
     self._jobs_generated = True