diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2019-11-18 10:39:04 +0100 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2019-11-18 11:05:49 +0100 |
commit | fe23add6371e1655f7fd584e7fa2be7764b09a36 (patch) | |
tree | 7b03e3c5e610cd29b0e048dcb2f7195c4db730fc /etc/taskcluster/decisionlib.py | |
parent | b19b821985e6c5034c1a131d3d9e3ee4a7462e19 (diff) | |
download | servo-fe23add6371e1655f7fd584e7fa2be7764b09a36.tar.gz servo-fe23add6371e1655f7fd584e7fa2be7764b09a36.zip |
Raise the priority of the release build task for WPT on macOS
… since other time-sensitive tasks depend on them.
Note: we need to be careful with task priorities,
especially in worker pools with limited capacity,
since they are absolute and can cause starvation:
https://docs.taskcluster.net/docs/manual/tasks/priority
Diffstat (limited to 'etc/taskcluster/decisionlib.py')
-rw-r--r-- | etc/taskcluster/decisionlib.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/taskcluster/decisionlib.py b/etc/taskcluster/decisionlib.py index 488ae989f5c..acd8556ad79 100644 --- a/etc/taskcluster/decisionlib.py +++ b/etc/taskcluster/decisionlib.py @@ -144,6 +144,7 @@ class Task: self.routes = [] self.extra = {} self.treeherder_required = False + self.priority = None # Defaults to 'lowest' # All `with_*` methods return `self`, so multiple method calls can be chained. with_description = chaining(setattr, "description") @@ -153,6 +154,7 @@ class Task: with_deadline_in = chaining(setattr, "deadline_in") with_expires_in = chaining(setattr, "expires_in") with_index_and_artifacts_expire_in = chaining(setattr, "index_and_artifacts_expire_in") + with_priority = chaining(setattr, "priority") with_dependencies = chaining(append_to_attr, "dependencies") with_scopes = chaining(append_to_attr, "scopes") @@ -248,6 +250,7 @@ class Task: scopes=scopes, routes=routes, extra=self.extra, + priority=self.priority, ) task_id = taskcluster.slugId() |