Skip to content

Commit 24af06a

Browse files
committed
Skipping queue items where download ClientUnavailable
1 parent 9f5b714 commit 24af06a

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/utils/queue_manager.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ async def _get_arr_records(self, full_queue, record_count):
9999
def _filter_out_ignored_statuses(self, queue, ignored_statuses=("delay","downloadClientUnavailable")):
100100
"""
101101
All matching items are removed from the queue. However, logging of ignored items
102-
is limited to one per (title, protocol, indexer) combination to reduce log noise.
102+
is limited to one per (download title, protocol, indexer) combination to reduce log noise
103+
(since one download may be behind in multiple queue items)
103104
104105
Args:
105106
queue (list[dict]): The queue to filter.
@@ -124,10 +125,7 @@ def _filter_out_ignored_statuses(self, queue, ignored_statuses=("delay","downloa
124125
if status in ignored_statuses:
125126
if combination not in seen_combinations:
126127
seen_combinations.add(combination)
127-
logger.debug(
128-
">>> Ignored queue item: %s (Status: %s, Protocol: %s, Indexer: %s)",
129-
title, status, protocol, indexer
130-
)
128+
logger.debug(f"queue_manager.py/_filter_out_ignored_statuses: Ignored queue item: {title} (Status: {status}, Protocol: {protocol}, Indexer: {indexer})")
131129
continue
132130

133131
filtered_queue.append(item)

0 commit comments

Comments
 (0)