aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2020-03-19 17:30:29 +0100
committerSimon Sapin <simon.sapin@exyr.org>2020-03-19 17:30:29 +0100
commit0cd734fd7a8f531f721914f990540e31485a8e2a (patch)
treecb544a9cd89a2eb1296a127c98201e54a42ffc09 /etc
parent3d03b3bca0ee545d15ac3521391327bd08f02aae (diff)
downloadservo-0cd734fd7a8f531f721914f990540e31485a8e2a.tar.gz
servo-0cd734fd7a8f531f721914f990540e31485a8e2a.zip
Remove unused task indexing by task definition hash
Diffstat (limited to 'etc')
-rw-r--r--etc/taskcluster/decision_task.py1
-rw-r--r--etc/taskcluster/decisionlib.py7
2 files changed, 1 insertions, 7 deletions
diff --git a/etc/taskcluster/decision_task.py b/etc/taskcluster/decision_task.py
index 7a7784292bb..bdd10e643d3 100644
--- a/etc/taskcluster/decision_task.py
+++ b/etc/taskcluster/decision_task.py
@@ -105,7 +105,6 @@ def mocked_only():
windows_release()
magicleap_dev()
magicleap_nightly()
- decisionlib.DockerWorkerTask("Indexed by task definition").find_or_create()
ping_on_daily_task_failure = "SimonSapin, nox, emilio"
diff --git a/etc/taskcluster/decisionlib.py b/etc/taskcluster/decisionlib.py
index ecbdc54cfe8..2ac0d4569b4 100644
--- a/etc/taskcluster/decisionlib.py
+++ b/etc/taskcluster/decisionlib.py
@@ -279,7 +279,7 @@ class Task:
print("Found task %s indexed at %s" % (task_id, full_index_path))
return task_id
- def find_or_create(self, index_path=None):
+ def find_or_create(self, index_path):
"""
Try to find a task in the Index and return its ID.
@@ -292,11 +292,6 @@ class Task:
<https://docs.taskcluster.net/docs/reference/core/taskcluster-index/references/api#findTask>
"""
- if not index_path:
- worker_type = self.worker_type
- index_by = json.dumps([worker_type, self.build_worker_payload()]).encode("utf-8")
- index_path = "by-task-definition." + hashlib.sha256(index_by).hexdigest()
-
task_id = SHARED.found_or_created_indexed_tasks.get(index_path)
if task_id is not None:
return task_id