Lines Matching refs:job
222 job = self._create_job(**create_job_kwargs)
224 job.dependency_labels.add(label)
225 hqes = list(scheduler_models.HostQueueEntry.fetch(where='job_id=%d' % job.id))
302 hqe.job.update_field('shard_id', 3)
307 self.assertIsNone(hqe.job.shard_id)
310 self.assertEquals(hqe.job.shard_id, 3)
332 queue_entry.job.reboot_before = reboot_before
339 job = scheduler_models.Job(django_job.id)
340 job.request_abort()
341 django_hqes = list(models.HostQueueEntry.objects.filter(job=job.id))
364 job = self._create_job(hosts=[1, 2])
365 job.run_verify = False
366 job.save()
382 job = self._create_job(hosts=[1, 2], synchronous=True)
383 job.run_verify = False
384 job.save()
392 job = self._create_job(hosts=[1, 2])
393 job.run_reset = False
394 job.run_verify = False
395 job.save()
403 job = self._create_job(hosts=[1, 2], synchronous=True)
404 job.reboot_before = model_attributes.RebootBefore.NEVER
405 job.save()
414 job = self._create_job(hosts=[1, 2], synchronous=False)
415 job.reboot_before = model_attributes.RebootBefore.NEVER
416 job.save()
425 job = self._create_job(hosts=[1])
426 job.reboot_before = model_attributes.RebootBefore.ALWAYS
427 job.save()
437 job = self._create_job(hosts=[1])
438 job.reboot_before = model_attributes.RebootBefore.IF_DIRTY
439 job.save()