This is suspect to break our afe "debug" link. I am going to revert it for now.
Revert "[autotest] Add heartbeat AFE endpoint to shard Autotest"
This reverts commit 1e10d745c65ecafa79bd4f0b4f0b743bd5f1eff3.
Change-Id: I81fd554a910c8c5b7537b34ec13301fcf15be3fd
Reviewed-on: https://chromium-review.googlesource.com/217980
Reviewed-by: Fang Deng <fdeng@chromium.org>
Commit-Queue: Fang Deng <fdeng@chromium.org>
Tested-by: Fang Deng <fdeng@chromium.org>
diff --git a/frontend/afe/rpc_utils.py b/frontend/afe/rpc_utils.py
index c66656f..bccc23d 100644
--- a/frontend/afe/rpc_utils.py
+++ b/frontend/afe/rpc_utils.py
@@ -914,30 +914,4 @@
start_time, end_time, **filter_data_common),
inject_times_to_filter('time_started__gte', 'time_started__lte',
start_time, end_time,
- **filter_data_special_tasks))
-
-
-def retrieve_shard(shard_hostname):
- """
- Retrieves the shard with the given hostname from the database or creates it.
-
- @param shard_hostname: Hostname of the shard to retrieve
-
- @returns: Shard object
- """
- try:
- shard = models.Shard.smart_get(shard_hostname)
- except models.Shard.DoesNotExist:
- shard = models.Shard.objects.create(hostname=shard_hostname)
- return shard
-
-
-def find_records_for_shard(shard):
- """Find records that should be sent to a shard.
-
- @returns: Tuple of two lists for hosts and jobs: (hosts, jobs)
- """
- hosts = models.Host.assign_to_shard(shard)
- jobs = models.Job.assign_to_shard(shard)
-
- return hosts, jobs
+ **filter_data_special_tasks))
\ No newline at end of file