mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2026-10-26 17:58:50 -04:00
Remove stalled downloads (#21)
This commit is contained in:
1 parent
0a6ec21c95
commit
64bb9fc513
53 files changed
+522
-160
No files matched your search
@@ -1,4 +1,6 @@
|
||||
namespace Common.Configuration.QueueCleaner;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
|
||||
namespace Common.Configuration.QueueCleaner;
|
||||
|
||||
public sealed record QueueCleanerConfig : IJobConfig
|
||||
{
|
||||
@@ -7,6 +9,12 @@ public sealed record QueueCleanerConfig : IJobConfig
|
||||
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()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user