mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Ignoring worker count because each process has it's own worker. Limiting simultaneous downloads to 4.
This commit is contained in:
parent
c24353edf2
commit
c26e47a55d
1 changed files with 3 additions and 1 deletions
|
|
@ -591,7 +591,9 @@ class DownloadManager:
|
|||
# Don't queue downloads when disabled.
|
||||
return
|
||||
|
||||
if len(self.data['processing_domains']) >= len(self.workers):
|
||||
if (domains := len(self.data['processing_domains'])) >= 4:
|
||||
self.log_debug(
|
||||
f'Unable to queue downloads because there are more domains than workers: {domains} >= 4')
|
||||
return
|
||||
|
||||
# Find download whose domain isn't already being downloaded.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue