Skip to content

Commit cf2992f

Browse files
committed
Square the priority factor
Signed-off-by: Alex Hughes <[email protected]>
1 parent 95a24b8 commit cf2992f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cloudformation/auxiliary_templates/custom_balancer/custom_queue_job_balancer.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ Resources:
272272
error_factor = error_count * EW
273273
time_factor = time_difference * SW
274274
rendering_factor = (total_rendering_tasks - RB) * RW
275-
weight = max(1, priority_factor + error_factor + time_factor + rendering_factor)
275+
weight = max(1, (priority_factor * priority_factor) + error_factor + time_factor + rendering_factor)
276276
return weight
277277
278278

0 commit comments

Comments
 (0)