• Home
  • Raw
  • Download

Lines Matching refs:models

27 from autotest_lib.frontend.afe import models
82 if (models.DroneSet.drone_sets_enabled() and
83 not models.DroneSet.default_drone_set_name()):
481 return bool(models.SpecialTask.objects.filter(host__id=host.id,
519 statuses = (models.HostQueueEntry.Status.STARTING,
520 models.HostQueueEntry.Status.RUNNING,
521 models.HostQueueEntry.Status.GATHERING,
522 models.HostQueueEntry.Status.PARSING)
562 special_tasks = models.SpecialTask.objects.filter(
578 if queue_entry.status in (models.HostQueueEntry.Status.STARTING,
579 models.HostQueueEntry.Status.RUNNING):
583 if queue_entry.status == models.HostQueueEntry.Status.GATHERING:
585 if queue_entry.status == models.HostQueueEntry.Status.PARSING:
594 non_host_statuses = {models.HostQueueEntry.Status.PARSING}
688 models.HostQueueEntry.Status.PENDING):
696 where='status = "%s"' % models.HostQueueEntry.Status.RESETTING)
698 special_tasks = models.SpecialTask.objects.filter(
699 task__in=(models.SpecialTask.Task.CLEANUP,
700 models.SpecialTask.Task.VERIFY,
701 models.SpecialTask.Task.RESET),
765 user = models.User.objects.get(login='autotest_system')
766 except models.User.DoesNotExist:
767 user = models.User.objects.get(
769 models.SpecialTask.objects.create(
770 task=models.SpecialTask.Task.RESET,
771 host=models.Host.objects.get(id=host.id),
819 queue_entry.set_status(models.HostQueueEntry.Status.STARTING)
940 models.SpecialTask.objects.filter(is_active=False,
970 aborted_tasks = models.SpecialTask.objects.filter(is_active=True,
1206 queue_entry.set_status(models.HostQueueEntry.Status.RUNNING)
1290 allowed_hqe_statuses=(models.HostQueueEntry.Status.STARTING,
1291 models.HostQueueEntry.Status.RUNNING),
1292 allowed_host_statuses=(models.Host.Status.PENDING,
1293 models.Host.Status.RUNNING))
1299 queue_entry.host.set_status(models.Host.Status.RUNNING)
1307 queue_entry.set_status(models.HostQueueEntry.Status.GATHERING)
1308 queue_entry.host.set_status(models.Host.Status.RUNNING)
1352 if hqe.status != models.HostQueueEntry.Status.STARTING:
1353 hqe.set_status(models.HostQueueEntry.Status.PARSING)