From 118ff85fbf9a75875c7e76360b5dcc5f1a4fdfc3 Mon Sep 17 00:00:00 2001 From: swark2006 Date: Thu, 9 Apr 2026 18:50:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=90=8C=E6=AD=A5=20LoadFactor=20?= =?UTF-8?q?=E5=88=B0=E8=B0=83=E5=BA=A6=E5=BF=AB=E7=85=A7=E7=BC=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit LoadFactor 字段在构建调度快照缓存时缺失,导致调度算法 EffectiveLoadFactor() 无法使用配置的负载因子,回退到 Concurrency。 这会影响账号的负载率计算,进而影响调度优先级。 修复:在 buildSchedulerMetadataAccount 中添加 LoadFactor 字段。 --- backend/internal/repository/scheduler_cache.go | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/internal/repository/scheduler_cache.go b/backend/internal/repository/scheduler_cache.go index 35345a8b..e9be8c7a 100644 --- a/backend/internal/repository/scheduler_cache.go +++ b/backend/internal/repository/scheduler_cache.go @@ -378,6 +378,7 @@ func buildSchedulerMetadataAccount(account service.Account) service.Account { Platform: account.Platform, Type: account.Type, Concurrency: account.Concurrency, + LoadFactor: account.LoadFactor, Priority: account.Priority, RateMultiplier: account.RateMultiplier, Status: account.Status,