def next_job(self, job):
        self.current_job = job
        self.job_iteration_counts[self.spec.id] += 1
        if not self.aborted:
            outdir_name = '_'.join(map(str, [self.spec.label, self.spec.id, self.current_iteration]))
            self.output_directory = _d(os.path.join(self.run_output_directory, outdir_name))
            self.iteration_artifacts = [wa for wa in self.workload.artifacts]
        self.current_job.result.iteration = self.current_iteration
        self.current_job.result.output_directory = self.output_directory
Invoked by the runner when starting a new iteration of workload execution.
dataset/ETHPy150Open ARM-software/workload-automation/wlauto/core/execution.py/ExecutionContext.next_job