Lines Matching refs:models

18 from autotest_lib.frontend.afe import models, model_logic
130 % models.HostQueueEntry.Status.QUEUED)
194 extra_args['params'] = [models.Label.smart_get(label).id
202 query = models.Host.valid_objects.all()
204 query = models.Host.objects.all()
207 only_if_needed_labels = models.Label.valid_objects.filter(
213 query = models.Host.objects.add_join(
220 atomic_group_labels = models.Label.valid_objects.filter(
226 query = models.Host.objects.add_join(
235 return models.Host.query_objects(filter_data, initial_query=query)
236 except models.Label.DoesNotExist as e:
237 return models.Host.objects.none()
274 test_objects = [models.Test.smart_get(test) for test in tests]
278 profiler_objects = [models.Profiler.smart_get(profiler)
296 label = models.Label.smart_get(label)
300 in models.Label.objects.filter(test__in=test_objects))
318 hosts_in_job = models.Host.objects.filter(id__in=host_ids)
342 hosts = models.Host.objects.filter(labels=metahost)
410 for label in models.Label.objects.filter(name__in=dependencies):
516 queue_entries = models.HostQueueEntry.query_objects(
585 atomic_hosts = models.Host.objects.filter(
610 models.Label.objects.filter(name__in=dependencies))
627 job = models.Job.create(owner=owner, options=options,
651 models.Label.objects.get(name=name)
652 except models.Label.DoesNotExist:
654 new_label = models.Label.objects.create(name=name)
724 job = models.Job.objects.get(id=task['queue_entry']['job'])
889 user = models.User.current_user()
912 for ag in models.AtomicGroup.objects.all())
913 label_objects = list(models.Label.objects.filter(name__in=meta_hosts))
923 host_objects = models.Host.smart_get_bulk(hosts)
965 atomic_group = models.AtomicGroup.smart_get(atomic_group_name)
976 this_host = models.Host.create_one_time_host(host)
1082 return models.Shard.smart_get(shard_hostname)
1097 hosts = models.Host.assign_to_shard(shard, known_host_ids)
1099 jobs = models.Job.assign_to_shard(shard, known_job_ids)
1102 suite_job_keyvals = models.JobKeyval.objects.filter(
1164 shard, jobs, models.Job)
1168 shard, hqes, models.HostQueueEntry, job_ids_sent=job_ids_sent)
1192 host = models.Host.smart_get(kwargs['id'])
1260 label = models.Label.smart_get(name)
1261 except models.Label.DoesNotExist: