From e27d0f01af9582a688d4ef84818c53f48810cfa3 Mon Sep 17 00:00:00 2001 From: Christiaan Bloemendaal Date: Tue, 2 Jan 2024 09:36:42 +0100 Subject: [PATCH] fix(backend): assign individual thread pools to jobs --- src/Mangarr.Backend/Program.cs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/Mangarr.Backend/Program.cs b/src/Mangarr.Backend/Program.cs index fe7f255..d16ac2a 100644 --- a/src/Mangarr.Backend/Program.cs +++ b/src/Mangarr.Backend/Program.cs @@ -40,16 +40,17 @@ builder.Services.AddQuartz(options => { - options.UseDefaultThreadPool(3); - options.AddJob(CacheSourceSchedulerJob.JobKey); - options.AddJob(CacheSourceJob.JobKey, configure => configure.StoreDurably()); + options.AddJob(CacheSourceJob.JobKey, configure => configure.StoreDurably()) + .UseDefaultThreadPool(3); options.AddJob(IndexMangaSchedulerJob.JobKey); - options.AddJob(IndexMangaJob.JobKey, configure => configure.StoreDurably()); + options.AddJob(IndexMangaJob.JobKey, configure => configure.StoreDurably()) + .UseDefaultThreadPool(5); options.AddJob(DownloadChapterSchedulerJob.JobKey); - options.AddJob(DownloadChapterJob.JobKey, configure => configure.StoreDurably()); + options.AddJob(DownloadChapterJob.JobKey, configure => configure.StoreDurably()) + .UseDefaultThreadPool(3); options.AddTrigger(configure => {