fix jobRequestAffinity (#2641)

This commit is contained in:
David Colburn
2024-04-10 12:44:46 -07:00
committed by GitHub
parent e1b68012a1
commit 407614b28e
+1 -1
View File
@@ -390,7 +390,7 @@ func (h *AgentHandler) JobRequestAffinity(ctx context.Context, job *livekit.Job)
if len(w.RunningJobs()) > 0 && load > maxLoad {
maxLoad = load
affinity = 0.5 + load/2
} else {
} else if affinity == 0 {
affinity = 0.5
}
}