• Home
  • Raw
  • Download

Lines Matching refs:job

436     def insert_job(self, tag, job, parent_job_id=None, commit=None):  argument
446 job.machine_idx = self.lookup_machine(job.machine)
447 if not job.machine_idx:
448 job.machine_idx = self.insert_machine(job, commit=commit)
449 elif job.machine:
452 self.update_machine_information(job, commit=commit)
457 'label': job.label,
458 'username': job.user,
459 'machine_idx': job.machine_idx,
460 'queued_time': job.queued_time,
461 'started_time': job.started_time,
462 'finished_time': job.finished_time,
465 'build': job.build,
466 'build_version': job.build_version,
467 'board': job.board,
468 'suite': job.suite}
469 job.afe_job_id = afe_job_id
471 job.afe_parent_job_id = str(parent_job_id)
474 is_update = hasattr(job, 'index')
476 self.update('tko_jobs', data, {'job_idx': job.index}, commit=commit)
479 job.index = self.get_last_autonumber_value()
480 self.update_job_keyvals(job, commit=commit)
481 for test in job.tests:
482 self.insert_test(job, test, commit=commit)
484 data['job_idx'] = job.index
488 def update_job_keyvals(self, job, commit=None): argument
494 for key, value in job.keyval_dict.iteritems():
495 where = {'job_id': job.index, 'key': key}
505 def insert_test(self, job, test, commit = None): argument
513 data = {'job_idx':job.index, 'test':test.testname,
516 'reason':test.reason, 'machine_idx':job.machine_idx,
573 def machine_info_dict(self, job): argument
580 hostname = job.machine
581 group = job.machine_group
582 owner = job.machine_owner
593 def insert_machine(self, job, commit = None): argument
599 machine_info = self.machine_info_dict(job)
604 def update_machine_information(self, job, commit = None): argument
610 machine_info = self.machine_info_dict(job)