From e5cee65d7500785f44741a147badb4ab67251622 Mon Sep 17 00:00:00 2001 From: Tomas Kopecek Date: Mon, 24 Mar 2025 14:01:59 +0100 Subject: [PATCH] Raise weight cap Currently weight is limited to 4.5. As they are now builder with very different setups (number of cpus/memory) it seems to be better to raise the limit and leave it to fill larger builders capacities. --- builder/kojid | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builder/kojid b/builder/kojid index 2759a0df..5f192b78 100755 --- a/builder/kojid +++ b/builder/kojid @@ -1595,8 +1595,8 @@ class BuildArchTask(BaseBuildTask): return # increase the task weight by 0.75 for every hour of build duration adj = avg / 4800.0 - # cap the adjustment at +4.5 - weight = self.weight() + min(4.5, adj) + # cap the adjustment at +18 (24 hours) + weight = self.weight() + min(18.0, adj) self.session.host.setTaskWeight(self.id, weight) def checkHost(self, hostdata):