Lines Matching refs:models
31 from autotest_lib.frontend.afe import models, model_attributes
638 active = (status in models.HostQueueEntry.ACTIVE_STATUSES)
639 complete = (status in models.HostQueueEntry.COMPLETE_STATUSES)
679 if status is not models.HostQueueEntry.Status.ABORTED:
761 status_counts = models.Job.objects.get_status_counts(
784 self.set_status(models.HostQueueEntry.Status.QUEUED)
829 self.set_status(models.HostQueueEntry.Status.PENDING)
830 self.host.set_status(models.Host.Status.PENDING)
838 self.status == models.HostQueueEntry.Status.PENDING):
847 Status = models.HostQueueEntry.Status
867 self.host.set_status(models.Host.Status.READY)
870 models.SpecialTask.objects.create(
871 task=models.SpecialTask.Task.CLEANUP,
872 host=models.Host.objects.get(id=self.host.id),
875 models.SpecialTask.objects.create(
876 task=models.SpecialTask.Task.REPAIR,
877 host=models.Host.objects.get(id=self.host.id),
947 return models.Job.objects.get(id=self.id)
954 self._owner_model = models.User.objects.get(login=self.owner)
1050 pending_entries = models.HostQueueEntry.objects.filter(
1051 job=self.id, status=models.HostQueueEntry.Status.PENDING)
1092 statuses = list(models.HostQueueEntry.PRE_JOB_STATUSES)
1094 statuses = list(models.HostQueueEntry.IDLE_PRE_JOB_STATUSES)
1095 return models.HostQueueEntry.objects.filter(job=self.id,
1108 if child_entry.status == models.HostQueueEntry.Status.PENDING:
1109 child_entry.host.status = models.Host.Status.READY
1111 child_entry.status = models.HostQueueEntry.Status.STOPPED
1125 query = models.HostQueueEntry.objects.filter(
1221 models.SpecialTask.objects.create(
1222 host=models.Host.objects.get(id=queue_entry.host_id),
1238 hqe_model = models.HostQueueEntry.objects.get(id=queue_entry.id)
1242 models.SpecialTask.Task.PROVISION)
1245 self._queue_special_task(hqe_model, models.SpecialTask.Task.RESET)
1250 models.SpecialTask.Task.CLEANUP)
1254 models.SpecialTask.Task.VERIFY)
1339 queue_entry.set_status(models.HostQueueEntry.Status.STARTING)