Fix multiple runs on queue cleaner when download cleaner is enabled (#90)

This commit is contained in:
Flaminel
2025-03-11 23:34:27 +02:00
committed by GitHub
parent 3a9d5d9085
commit 324c3ace8f
2 changed files with 5 additions and 3 deletions

View File

@@ -55,7 +55,7 @@ public static class QuartzDI
if (contentBlockerConfig?.Enabled is true && queueCleanerConfig is { Enabled: true, RunSequentially: true })
{
q.AddJob<QueueCleaner>(queueCleanerConfig, string.Empty);
q.AddJobListener(new JobChainingListener(nameof(QueueCleaner)));
q.AddJobListener(new JobChainingListener(nameof(ContentBlocker), nameof(QueueCleaner)));
}
else
{