Skip to content

Commit

Permalink
fix(backend): assign individual thread pools to jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
Thundernerd committed Jan 2, 2024
1 parent 4879015 commit e27d0f0
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/Mangarr.Backend/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,17 @@

builder.Services.AddQuartz(options =>
{
options.UseDefaultThreadPool(3);

options.AddJob<CacheSourceSchedulerJob>(CacheSourceSchedulerJob.JobKey);
options.AddJob<CacheSourceJob>(CacheSourceJob.JobKey, configure => configure.StoreDurably());
options.AddJob<CacheSourceJob>(CacheSourceJob.JobKey, configure => configure.StoreDurably())
.UseDefaultThreadPool(3);

options.AddJob<IndexMangaSchedulerJob>(IndexMangaSchedulerJob.JobKey);
options.AddJob<IndexMangaJob>(IndexMangaJob.JobKey, configure => configure.StoreDurably());
options.AddJob<IndexMangaJob>(IndexMangaJob.JobKey, configure => configure.StoreDurably())
.UseDefaultThreadPool(5);

options.AddJob<DownloadChapterSchedulerJob>(DownloadChapterSchedulerJob.JobKey);
options.AddJob<DownloadChapterJob>(DownloadChapterJob.JobKey, configure => configure.StoreDurably());
options.AddJob<DownloadChapterJob>(DownloadChapterJob.JobKey, configure => configure.StoreDurably())
.UseDefaultThreadPool(3);

options.AddTrigger(configure =>
{
Expand Down

0 comments on commit e27d0f0

Please sign in to comment.