From 4785a75309b44289c8a30dd32f3744f842448a04 Mon Sep 17 00:00:00 2001 From: ch1ka <164895536+ch1kulya@users.noreply.github.com> Date: Wed, 22 Jan 2025 14:00:15 +0300 Subject: [PATCH] more max_workers for concurrent.futures --- src/utils/manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/manager.py b/src/utils/manager.py index 42a5cb0..33cebea 100644 --- a/src/utils/manager.py +++ b/src/utils/manager.py @@ -196,7 +196,7 @@ def parse_feeds(self, channel_ids): list: A list of parsed feed data for each channel ID. """ with self.console.status(" " * 9 + "[b green]Parsing channels..."): - with concurrent.futures.ThreadPoolExecutor(max_workers=8) as executor: + with concurrent.futures.ThreadPoolExecutor(max_workers=32) as executor: results = list(executor.map(self.parse_feed, channel_ids)) self._log(f"[b green]Parsed successfully.") return results