diff options
-rw-r--r-- | etc/taskcluster/decision_task.py | 1 | ||||
-rw-r--r-- | etc/taskcluster/decisionlib.py | 7 |
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 |