From 45a2bccf18d59030655230575014db2287736c9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B5=87=E6=96=87=E9=BE=99?= Date: Mon, 14 Oct 2024 16:07:45 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4hangire=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ds-wms-service/DS.WMS.OpApi/Program.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ds-wms-service/DS.WMS.OpApi/Program.cs b/ds-wms-service/DS.WMS.OpApi/Program.cs index 2b194bb4..4f4f2f55 100644 --- a/ds-wms-service/DS.WMS.OpApi/Program.cs +++ b/ds-wms-service/DS.WMS.OpApi/Program.cs @@ -51,7 +51,7 @@ builder.Services.AddDjyModuleInstall();//Djy builder.Services.AddRuleEngineModuleInstall();//Djy规则引擎校验服务 //builder.Services.AddHangfireModuleInstall();//Hangfire服务 -builder.Services.AddHangfireOPInstall();//Hangfire服务 +//builder.Services.AddHangfireOPInstall();//Hangfire服务 builder.Services.AddMQModuleInstall();//MQ // builder.Services.AddEndpointsApiExplorer(); @@ -88,7 +88,7 @@ if (!policyName.IsNullOrEmpty()) app.UseCors(policyName); //添加跨域中间件 } -app.UseHangfireMiddleware(); +//app.UseHangfireMiddleware(); app.UseRouting(); @@ -108,7 +108,7 @@ app.UseEndpoints(endpoints => { endpoints.MapControllers(); }); //await ServiceLocator.Instance.GetService().LoadCommonCache(); -app.UseHangfireServer(); -JobMiddleware.RegisterJob(j => j.GeneratReportAsync(), Cron.Daily(23, 59)); +//app.UseHangfireServer(); +//JobMiddleware.RegisterJob(j => j.GeneratReportAsync(), Cron.Daily(23, 59)); app.Run(); \ No newline at end of file