mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2026-01-17 02:07:50 -05:00
24 lines
644 B
C#
24 lines
644 B
C#
namespace Common.Configuration.QueueCleaner;
|
|
|
|
public sealed record QueueCleanerConfig : IJobConfig
|
|
{
|
|
public bool Enabled { get; init; }
|
|
|
|
public string CronExpression { get; init; } = "0 0/5 * * * ?";
|
|
|
|
public FailedImportConfig FailedImport { get; init; } = new();
|
|
|
|
public StalledConfig Stalled { get; init; } = new();
|
|
|
|
public SlowConfig Slow { get; init; } = new();
|
|
|
|
public ContentBlockerConfig ContentBlocker { get; init; } = new();
|
|
|
|
public void Validate()
|
|
{
|
|
FailedImport.Validate();
|
|
Stalled.Validate();
|
|
Slow.Validate();
|
|
ContentBlocker.Validate();
|
|
}
|
|
} |