Home
last modified time | relevance | path

Searched refs:hqes (Results 1 – 21 of 21) sorted by relevance

/external/autotest/venv/lucifer/
Dhandoffs.py53 hqes = models.HostQueueEntry.objects.filter(job_id__in=job_ids)
54 logger.debug('Cleaning up HQEs: %r', hqes.values_list('id', flat=True))
55 _clean_up_hqes(hqes)
56 host_ids = {id for id in hqes.values_list('host_id', flat=True)
62 def _clean_up_hqes(hqes): argument
64 logger.debug('Cleaning up HQEs: %r', hqes.values_list('id', flat=True))
65 hqes.update(complete=True,
68 (hqes.exclude(started_on=None)
Djobx.py32 hqes = job.hostqueueentry_set.all().prefetch_related('host')
33 return [hqe.host.hostname for hqe in hqes if hqe.host is not None]
Dhandlers.py72 hqes = self._job.hostqueueentry_set.all().prefetch_related('host')
76 for entry in hqes:
80 for entry in hqes:
87 for entry in hqes:
/external/autotest/frontend/afe/
Drpc_interface_unittest.py48 jobs=upload_jobs, hqes=upload_hqes,
59 hosts=[], hqes=[], argument
80 expected_hqes = [(hqe.id) for hqe in hqes]
161 jobs=[job1], hosts=[host1], hqes=job1.hostqueueentry_set.all())
165 jobs=[job2], hosts=[host2], hqes=job2.hostqueueentry_set.all())
180 hqes=job1.hostqueueentry_set.all(), hosts=[host1])
185 jobs=[job1], hqes=job1.hostqueueentry_set.all(), hosts=[])
203 jobs=[job2], hqes=job2.hostqueueentry_set.all())
219 hqes=job2.hostqueueentry_set.all())
1032 hqes = rpc_interface.get_host_queue_entries_by_insert_time(
[all …]
Drpc_utils.py1009 def persist_records_sent_from_shard(shard, jobs, hqes): argument
1031 shard, hqes, models.HostQueueEntry,
Drpc_interface.py2146 def shard_heartbeat(shard_hostname, jobs=(), hqes=(), known_job_ids=(), argument
2196 rpc_utils.persist_records_sent_from_shard(shard_obj, jobs, hqes)
/external/autotest/scheduler/
Dhost_scheduler_unittests.py93 hqes = list(self.db_helper.get_hqes(host_id=host.id))
94 self.assertTrue(len(hqes) == 1 and hqes[0].active and
95 hqes[0].status == models.HostQueueEntry.Status.QUEUED)
113 hqes = list(self.db_helper.get_hqes(host_id=host.id))
114 self.assertTrue(len(hqes) == 1 and not hqes[0].active and
115 hqes[0].status == models.HostQueueEntry.Status.QUEUED)
136 hqes = list(self.db_helper.get_hqes(host_id=host.id))
137 self.assertTrue(len(hqes) == 1 and not hqes[0].active and
138 hqes[0].status == models.HostQueueEntry.Status.QUEUED)
Dmonitor_db_cleanup.py107 hqes = query.distinct()
108 if not hqes:
111 with _cleanup_warning_banner('hqes past max runtime', len(hqes)):
112 for queue_entry in hqes:
116 _report_detected_errors('hqes_past_max_runtime', len(hqes))
Dmonitor_db_unittest.py931 hqes, task = self._setup_drones()
932 task.queue_entry_ids = (hqes[2].id,)
938 hqes, task = self._setup_drones()
939 hqe = hqes[3]
953 hqes, task = self._setup_drones()
954 task.queue_entry_ids = (hqes[0].id,)
960 hqes, task = self._setup_drones()
961 task.queue_entry_ids = (hqes[0].id, hqes[1].id)
Dluciferlib.py65 hqes = hqe.job.hostqueueentry_set.all()
67 _get_consistent_execution_path(hqes)
Dscheduler_models_unittest.py231 hqes = list(scheduler_models.HostQueueEntry.fetch(where='job_id=%d' % job.id))
232 self.assertEqual(1, len(hqes))
233 return hqes[0]
Dagent_task.py436 hqes = models.HostQueueEntry.objects.filter(id__in=self.queue_entry_ids)
437 if not hqes:
443 job_ids = hqes.values_list('job', flat=True).distinct()
/external/autotest/scheduler/shard/
Dshard_client_unittest.py58 known_host_statuses=[], hqes=[], jobs=[], argument
63 hqes=hqes, jobs=jobs,
178 def verify_upload_jobs_and_hqes(name, shard_hostname, jobs, hqes, argument
182 self.assertEqual(len(hqes), 1)
183 job, hqe = jobs[0], hqes[0]
188 jobs=mox.IgnoreArg(), hqes=mox.IgnoreArg(),
Dshard_client.py256 hqes = []
258 hqes.extend(job.hostqueueentry_set.all())
259 return hqes
301 hqes = [hqe.serialize(include_dependencies=False)
310 'jobs': jobs, 'hqes': hqes}
/external/autotest/server/lib/
Dsuite_report.py196 hqes = afe.get_host_queue_entries(job_id__in=list(child_job_ids))
197 logging.debug('... fetched %s HQEs.' % len(hqes))
198 hqe_statuses = {h.id: job_statuses.get(h.job.id, None) for h in hqes}
201 hostnames = {h.host.hostname for h in hqes if h.host}
/external/autotest/site_utils/
Dlxc_cleanup.py65 hqes = AFE.get_host_queue_entries(job_id=job_id)
70 if not hqes:
73 for hqe in hqes:
Djob_directories.py196 hqes = _AFE.get_host_queue_entries(finished_on__isnull=False,
198 if not hqes:
201 return max([hqe.finished_on for hqe in hqes])
Dtest_push.py387 hqes = [models.HostQueueEntry.objects.filter(job_id=job_id)[0]
389 hostnames = set([hqe.host.hostname for hqe in hqes])
/external/autotest/frontend/migrations/
D022_implement_sync_count.py24 hqes = manager.execute("""
29 for id, job_id, status, complete, hostname in hqes:
/external/autotest/contrib/
Dfind_suite_tasks.py81 hqes = afe.get_host_queue_entries(job_id__in=list(child_job_ids))
82 hostnames = {h.host.hostname for h in hqes if h.host}
/external/autotest/server/hosts/
Dservo_host.py391 hqes = afe.get_host_queue_entries(host=afe_host.id, complete=0)
392 for hqe in hqes: