mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Remove unused task indexing by task definition hash
This commit is contained in:
parent
3d03b3bca0
commit
0cd734fd7a
2 changed files with 1 additions and 7 deletions
|
@ -105,7 +105,6 @@ def mocked_only():
|
||||||
windows_release()
|
windows_release()
|
||||||
magicleap_dev()
|
magicleap_dev()
|
||||||
magicleap_nightly()
|
magicleap_nightly()
|
||||||
decisionlib.DockerWorkerTask("Indexed by task definition").find_or_create()
|
|
||||||
|
|
||||||
|
|
||||||
ping_on_daily_task_failure = "SimonSapin, nox, emilio"
|
ping_on_daily_task_failure = "SimonSapin, nox, emilio"
|
||||||
|
|
|
@ -279,7 +279,7 @@ class Task:
|
||||||
print("Found task %s indexed at %s" % (task_id, full_index_path))
|
print("Found task %s indexed at %s" % (task_id, full_index_path))
|
||||||
return task_id
|
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.
|
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>
|
<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)
|
task_id = SHARED.found_or_created_indexed_tasks.get(index_path)
|
||||||
if task_id is not None:
|
if task_id is not None:
|
||||||
return task_id
|
return task_id
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue