From f9c1b0fa4bb82acdb15e4c4d086cd5d4320da5ea Mon Sep 17 00:00:00 2001 From: Andrea <42917461+andrea3x@users.noreply.github.com> Date: Thu, 27 Mar 2025 18:02:03 +0100 Subject: [PATCH] Fix cpu count multiprocessing errors pt.2 --- app/lib/tagger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/tagger.py b/app/lib/tagger.py index 0213135b..e0e799a1 100644 --- a/app/lib/tagger.py +++ b/app/lib/tagger.py @@ -132,7 +132,7 @@ class IndexTracks: config = UserConfig() # Create process pool with worker function - with Pool(processes=math.floor(cpu_count() / 2)) as pool: + with Pool(processes=max(1, cpu_count() // 2)) as pool: worker = partial(self._process_file, config=config) # Process files and track progress