Lines Matching refs:job

442     def insert_job(self, tag, job, parent_job_id=None, commit=None):  argument
452 job.machine_idx = self.lookup_machine(job.machine)
453 if not job.machine_idx:
454 job.machine_idx = self.insert_machine(job, commit=commit)
455 elif job.machine:
458 self.update_machine_information(job, commit=commit)
463 'label': job.label,
464 'username': job.user,
465 'machine_idx': job.machine_idx,
466 'queued_time': job.queued_time,
467 'started_time': job.started_time,
468 'finished_time': job.finished_time,
471 'build': job.build,
472 'build_version': job.build_version,
473 'board': job.board,
474 'suite': job.suite}
475 job.afe_job_id = afe_job_id
477 job.afe_parent_job_id = str(parent_job_id)
480 is_update = hasattr(job, 'index')
482 self.update('tko_jobs', data, {'job_idx': job.index}, commit=commit)
485 job.index = self.get_last_autonumber_value()
486 self.update_job_keyvals(job, commit=commit)
487 for test in job.tests:
488 self.insert_test(job, test, commit=commit)
493 def update_job_keyvals(self, job, commit=None): argument
499 for key, value in job.keyval_dict.iteritems():
500 where = {'job_id': job.index, 'key': key}
510 def insert_test(self, job, test, commit = None): argument
518 data = {'job_idx':job.index, 'test':test.testname,
521 'reason':test.reason, 'machine_idx':job.machine_idx,
578 def machine_info_dict(self, job): argument
585 hostname = job.machine
586 group = job.machine_group
587 owner = job.machine_owner
598 def insert_machine(self, job, commit = None): argument
604 machine_info = self.machine_info_dict(job)
609 def update_machine_information(self, job, commit = None): argument
615 machine_info = self.machine_info_dict(job)