Skip to content
Permalink
Browse files

Deduplicate task dependencies

  • Loading branch information
SimonSapin committed Nov 21, 2019
1 parent 203a06f commit 83921dbc990a799aa603bea697a745667ceb9612
Showing with 6 additions and 1 deletion.
  1. +6 −1 etc/taskcluster/decisionlib.py
@@ -221,9 +221,14 @@ def create(self):
assert CONFIG.decision_task_id
assert CONFIG.task_owner
assert CONFIG.task_source

def dedup(xs):
seen = set()
return [x for x in xs if not (x in seen or seen.add(x))]

queue_payload = {
"taskGroupId": CONFIG.decision_task_id,
"dependencies": [CONFIG.decision_task_id] + self.dependencies,
"dependencies": dedup([CONFIG.decision_task_id] + self.dependencies),
"schedulerId": self.scheduler_id,
"provisionerId": self.provisioner_id,
"workerType": self.worker_type,

0 comments on commit 83921db

Please sign in to comment.
You can’t perform that action at this time.