Lines Matching refs:models
28 from autotest_lib.frontend.afe import models, model_attributes
627 active = (status in models.HostQueueEntry.ACTIVE_STATUSES)
628 complete = (status in models.HostQueueEntry.COMPLETE_STATUSES)
662 if status is not models.HostQueueEntry.Status.ABORTED:
742 status_counts = models.Job.objects.get_status_counts(
765 self.set_status(models.HostQueueEntry.Status.QUEUED)
810 self.set_status(models.HostQueueEntry.Status.PENDING)
811 self.host.set_status(models.Host.Status.PENDING)
819 self.status == models.HostQueueEntry.Status.PENDING):
828 Status = models.HostQueueEntry.Status
849 self.host.set_status(models.Host.Status.READY)
852 models.SpecialTask.objects.create(
853 task=models.SpecialTask.Task.CLEANUP,
854 host=models.Host.objects.get(id=self.host.id),
857 models.SpecialTask.objects.create(
858 task=models.SpecialTask.Task.REPAIR,
859 host=models.Host.objects.get(id=self.host.id),
958 return models.Job.objects.get(id=self.id)
965 self._owner_model = models.User.objects.get(login=self.owner)
1136 atomic_entries = models.HostQueueEntry.objects.filter(
1142 started_statuses = (models.HostQueueEntry.Status.STARTING,
1143 models.HostQueueEntry.Status.RUNNING,
1144 models.HostQueueEntry.Status.COMPLETED)
1152 entries = models.HostQueueEntry.objects.filter(job=self.id,
1159 pending_entries = models.HostQueueEntry.objects.filter(
1160 job=self.id, status=models.HostQueueEntry.Status.PENDING)
1224 statuses = [models.HostQueueEntry.Status.QUEUED,
1225 models.HostQueueEntry.Status.PENDING]
1227 statuses.append(models.HostQueueEntry.Status.VERIFYING)
1228 return models.HostQueueEntry.objects.filter(job=self.id,
1240 if child_entry.status == models.HostQueueEntry.Status.PENDING:
1241 child_entry.host.status = models.Host.Status.READY
1243 child_entry.status = models.HostQueueEntry.Status.STOPPED
1263 query = models.HostQueueEntry.objects.filter(
1356 models.SpecialTask.objects.create(
1357 host=models.Host.objects.get(id=queue_entry.host_id),
1373 hqe_model = models.HostQueueEntry.objects.get(id=queue_entry.id)
1377 models.SpecialTask.Task.PROVISION)
1380 self._queue_special_task(hqe_model, models.SpecialTask.Task.RESET)
1385 models.SpecialTask.Task.CLEANUP)
1389 models.SpecialTask.Task.VERIFY)
1489 queue_entry.set_status(models.HostQueueEntry.Status.WAITING)
1498 queue_entry.set_status(models.HostQueueEntry.Status.PENDING)
1538 queue_entry.set_status(models.HostQueueEntry.Status.STARTING)