From e44a00d37f2e51f34e976fc30f06de5c832e422a Mon Sep 17 00:00:00 2001 From: derrod Date: Tue, 28 Apr 2020 06:12:30 +0200 Subject: [PATCH] [downloader] Cap worker processes at 16 --- legendary/downloader/manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legendary/downloader/manager.py b/legendary/downloader/manager.py index def5dff..0635af0 100644 --- a/legendary/downloader/manager.py +++ b/legendary/downloader/manager.py @@ -39,7 +39,7 @@ class DLManager(Process): self.dl_result_q = None self.writer_result_q = None self.max_jobs = max_jobs - self.max_workers = max_workers if max_workers else cpu_count() * 2 + self.max_workers = max_workers if max_workers else min(cpu_count() * 2, 16) # Analysis stuff self.analysis = None