Browse Source

更新设置

master
zxy 3 weeks ago
parent
commit
e28a6557c3
  1. 2
      API/Wood.Admin.WebApi/Startup.cs

2
API/Wood.Admin.WebApi/Startup.cs

@ -116,7 +116,7 @@ namespace Wood.Admin.WebApi
); // 添加日志过滤器(可选)
services.AddHangfireServer(options =>
{
options.WorkerCount = 16;
options.WorkerCount= Math.Max(Environment.ProcessorCount * 2, 10);
// 可选:配置队列优先级
//options.Queues = builder.Configuration.GetSection("Hangfire:ServerOptions:Queues").Get<string[]>() ?? new[] { "default" };

Loading…
Cancel
Save