def start_job(self): # spawn job greenlets job_handler = JobHandler( self._logger, self._vnc_api, self.job_template, self.job_execution_id, self.job_data, self.job_utils, self.device_json, self.auth_token, self.job_log_utils, self.sandesh_args, self.fabric_fq_name, self.job_log_utils.args.playbook_timeout, self.playbook_seq) if self.device_json is not None: if not self.device_json: msg = MsgBundle.getMessage(MsgBundle.DEVICE_JSON_NOT_FOUND) raise JobException(msg, self.job_execution_id) else: self.handle_multi_device_job(job_handler, self.result_handler) else: self.handle_single_job(job_handler, self.result_handler)