Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 519ab6a0cd | |||
| 0c691a540a |
@@ -20,11 +20,11 @@
|
|||||||
"QueueCleaner": {
|
"QueueCleaner": {
|
||||||
"Enabled": true,
|
"Enabled": true,
|
||||||
"RunSequentially": true,
|
"RunSequentially": true,
|
||||||
"IMPORT_FAILED_MAX_STRIKES": 5,
|
"IMPORT_FAILED_MAX_STRIKES": 0,
|
||||||
"IMPORT_FAILED_IGNORE_PRIVATE": false,
|
"IMPORT_FAILED_IGNORE_PRIVATE": false,
|
||||||
"IMPORT_FAILED_DELETE_PRIVATE": false,
|
"IMPORT_FAILED_DELETE_PRIVATE": false,
|
||||||
"IMPORT_FAILED_IGNORE_PATTERNS": [],
|
"IMPORT_FAILED_IGNORE_PATTERNS": [],
|
||||||
"STALLED_MAX_STRIKES": 5,
|
"STALLED_MAX_STRIKES": 0,
|
||||||
"STALLED_IGNORE_PRIVATE": false,
|
"STALLED_IGNORE_PRIVATE": false,
|
||||||
"STALLED_DELETE_PRIVATE": false
|
"STALLED_DELETE_PRIVATE": false
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using Common.Configuration.Arr;
|
using Common.Configuration.Arr;
|
||||||
using Common.Configuration.Logging;
|
using Common.Configuration.Logging;
|
||||||
using Common.Configuration.QueueCleaner;
|
using Common.Configuration.QueueCleaner;
|
||||||
using Common.Helpers;
|
using Common.Helpers;
|
||||||
@@ -81,8 +81,10 @@ public abstract class ArrClient
|
|||||||
.Equals("importBlocked", StringComparison.InvariantCultureIgnoreCase);
|
.Equals("importBlocked", StringComparison.InvariantCultureIgnoreCase);
|
||||||
bool isImportPending() => record.TrackedDownloadState
|
bool isImportPending() => record.TrackedDownloadState
|
||||||
.Equals("importPending", StringComparison.InvariantCultureIgnoreCase);
|
.Equals("importPending", StringComparison.InvariantCultureIgnoreCase);
|
||||||
|
bool isImportFailed() => record.TrackedDownloadState
|
||||||
|
.Equals("importFailed", StringComparison.InvariantCultureIgnoreCase);
|
||||||
|
|
||||||
if (hasWarn() && (isImportBlocked() || isImportPending()))
|
if (hasWarn() && (isImportBlocked() || isImportPending() || isImportFailed()))
|
||||||
{
|
{
|
||||||
if (HasIgnoredPatterns(record))
|
if (HasIgnoredPatterns(record))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user