Lines Matching refs:models

24 from autotest_lib.frontend.afe import models, rpc_utils
83 if (models.DroneSet.drone_sets_enabled() and
84 not models.DroneSet.default_drone_set_name()):
462 return bool(models.SpecialTask.objects.filter(host__id=host.id,
500 statuses = (models.HostQueueEntry.Status.STARTING,
501 models.HostQueueEntry.Status.RUNNING,
502 models.HostQueueEntry.Status.GATHERING,
503 models.HostQueueEntry.Status.PARSING,
504 models.HostQueueEntry.Status.ARCHIVING)
527 special_tasks = models.SpecialTask.objects.filter(
543 if queue_entry.status in (models.HostQueueEntry.Status.STARTING,
544 models.HostQueueEntry.Status.RUNNING):
548 if queue_entry.status == models.HostQueueEntry.Status.GATHERING:
550 if queue_entry.status == models.HostQueueEntry.Status.PARSING:
552 if queue_entry.status == models.HostQueueEntry.Status.ARCHIVING:
561 non_host_statuses = (models.HostQueueEntry.Status.PARSING,
562 models.HostQueueEntry.Status.ARCHIVING)
655 models.HostQueueEntry.Status.PENDING):
662 where='status = "%s"' % models.HostQueueEntry.Status.VERIFYING)
665 special_tasks = models.SpecialTask.objects.filter(
666 task__in=(models.SpecialTask.Task.CLEANUP,
667 models.SpecialTask.Task.VERIFY),
724 models.SpecialTask.objects.create(
725 task=models.SpecialTask.Task.CLEANUP,
726 host=models.Host.objects.get(id=host.id))
773 queue_entry.set_status(models.HostQueueEntry.Status.STARTING)
869 where='status = "%s"' % models.HostQueueEntry.Status.WAITING):
901 models.SpecialTask.objects.filter(is_active=False,
930 aborted_tasks = models.SpecialTask.objects.filter(is_active=True,
1035 recurring_runs = models.RecurringRun.objects.filter(
1050 this_host = models.Host.create_one_time_host(host.hostname)
1203 queue_entry.set_status(models.HostQueueEntry.Status.RUNNING)
1283 allowed_hqe_statuses=(models.HostQueueEntry.Status.STARTING,
1284 models.HostQueueEntry.Status.RUNNING),
1285 allowed_host_statuses=(models.Host.Status.PENDING,
1286 models.Host.Status.RUNNING))
1292 queue_entry.host.set_status(models.Host.Status.RUNNING)
1300 queue_entry.set_status(models.HostQueueEntry.Status.GATHERING)
1301 queue_entry.host.set_status(models.Host.Status.RUNNING)
1345 if hqe.status != models.HostQueueEntry.Status.STARTING:
1346 hqe.set_status(models.HostQueueEntry.Status.PARSING)