Fix cpu count multiprocessing errors pt.2

This commit is contained in:
Andrea
2025-03-27 18:02:03 +01:00
parent 2b59c07dc1
commit f9c1b0fa4b
+1 -1
View File
@@ -132,7 +132,7 @@ class IndexTracks:
config = UserConfig() config = UserConfig()
# Create process pool with worker function # 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) worker = partial(self._process_file, config=config)
# Process files and track progress # Process files and track progress