mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
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
This commit is contained in:
parent
b19b821985
commit
fe23add637
2 changed files with 6 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue