mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2026-01-05 20:37:51 -05:00
22 lines
579 B
C#
22 lines
579 B
C#
using Microsoft.Extensions.Configuration;
|
|
|
|
namespace Common.Configuration.QueueCleaner;
|
|
|
|
public sealed record QueueCleanerConfig : IJobConfig
|
|
{
|
|
public const string SectionName = "QueueCleaner";
|
|
|
|
public required bool Enabled { get; init; }
|
|
|
|
public required bool RunSequentially { get; init; }
|
|
|
|
[ConfigurationKeyName("IMPORT_FAILED_MAX_STRIKES")]
|
|
public ushort ImportFailedMaxStrikes { get; init; }
|
|
|
|
[ConfigurationKeyName("STALLED_MAX_STRIKES")]
|
|
public ushort StalledMaxStrikes { get; init; }
|
|
|
|
public void Validate()
|
|
{
|
|
}
|
|
} |