diff --git a/ds-wms-service/DS.Module.Quartz/QuartzModuleInstall.cs b/ds-wms-service/DS.Module.Quartz/QuartzModuleInstall.cs index 516a6448..ddd81e42 100644 --- a/ds-wms-service/DS.Module.Quartz/QuartzModuleInstall.cs +++ b/ds-wms-service/DS.Module.Quartz/QuartzModuleInstall.cs @@ -85,17 +85,17 @@ namespace DS.Module.QuartzModuleInstall .WithCronSchedule(configuration["JobConfig:" + jobKey1.Name]) ); }); - var jobKey2 = new JobKey(nameof(WSLWeeklyReportJob)); - services.AddQuartz(q => - { - q.UseMicrosoftDependencyInjectionJobFactory(); - q.AddJob(opts => opts.WithIdentity(jobKey2)); - q.AddTrigger(opts => opts - .ForJob(jobKey2) - .WithIdentity(nameof(WSLWeeklyReportJob) + "-trigger") - .WithCronSchedule(configuration["JobConfig:" + jobKey2.Name]) - ); - }); + //var jobKey2 = new JobKey(nameof(WSLWeeklyReportJob)); + //services.AddQuartz(q => + //{ + // q.UseMicrosoftDependencyInjectionJobFactory(); + // q.AddJob(opts => opts.WithIdentity(jobKey2)); + // q.AddTrigger(opts => opts + // .ForJob(jobKey2) + // .WithIdentity(nameof(WSLWeeklyReportJob) + "-trigger") + // .WithCronSchedule(configuration["JobConfig:" + jobKey2.Name]) + // ); + //}); //var jobKey2 = new JobKey(nameof(BackgroundTaskJob)); //services.AddQuartz(q => //{