Refactored quartz client registration

This commit is contained in:
2026-10-27 23:48:36 +02:00
parent 5be7c8c56a
commit a8daea830f
3 changed files with 3 additions and 9 deletions
-6
View File
@@ -146,12 +146,6 @@ builder.Services.AddCors(options =>
var app = builder.Build();
var schedulerFactory = app.Services.GetRequiredService<ISchedulerFactory>();
var scheduler = await schedulerFactory.GetScheduler();
if (scheduler!.Status != SchedulerStatus.Running)
await scheduler.Start();
app.UseCors(CorsPolicy);
app.UseHsts();
app.UseHttpsRedirection();