mirror of
https://github.com/livekit/livekit.git
synced 2026-08-06 23:39:43 +00:00
fix jobRequestAffinity (#2641)
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user