0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

Revert "SERVER-60159 increase priority of query patch variants"

This reverts commit db66ada7af.
This commit is contained in:
Robert Guo 2021-10-04 19:59:06 -04:00 committed by Evergreen Agent
parent 87ed51fe2d
commit 2cafd16ff1

View File

@ -393,15 +393,6 @@ class GenerateBuildVariantOrchestrator:
LOGGER.info("Configure task", task_id=task.task_id, priority=priority)
self.evg_api.configure_task(task.task_id, priority=priority)
@classmethod
def _should_adjust_task_priority(cls, task, gen_tasks):
if task.display_name in gen_tasks:
return True
# Test out the effect of Evergreen capacity constraints.
if task.build_variant.endswith("-query-patch-only"):
return True
return False
def adjust_gen_tasks_priority(self, gen_tasks: Set[str]) -> int:
"""
Increase the priority of any "_gen" tasks.
@ -417,7 +408,7 @@ class GenerateBuildVariantOrchestrator:
with Executor(max_workers=MAX_WORKERS) as exe:
jobs = [
exe.submit(self.adjust_task_priority, task) for task in task_list
if self._should_adjust_task_priority(task, gen_tasks)
if task.display_name in gen_tasks
]
results = [j.result() for j in jobs]