Ignoring worker count because each process has it's own worker. Limiting simultaneous downloads to 4.

This commit is contained in:
Roland 2023-04-02 12:39:54 -06:00
parent c24353edf2
commit c26e47a55d
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93

View file

@ -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.