Do not use a Thread to Periodically check for Due workers.

Each Periodic Worker has it's own Thread that waits for execution.
This commit is contained in:
2025-07-21 13:45:39 +02:00
parent 9d560692dc
commit dcf8ada486
4 changed files with 76 additions and 128 deletions

View File

@@ -135,12 +135,10 @@ using (IServiceScope scope = app.Services.CreateScope())
context.Sync();
}
Tranga.SetServiceProvider(app.Services);
Tranga.StartLogger();
Tranga.AddDefaultWorkers();
Tranga.PeriodicWorkerStarterThread.Start(app.Services);
app.UseCors("AllowAll");
app.Run();