limit number of workers

This commit is contained in:
Davide Scaini
2026-04-10 18:13:49 +02:00
parent cf414a08ad
commit 3e4ff4019b
3 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -171,7 +171,7 @@ def extract(
dedup = DedupIndex(output_dir=cfg.output_dir)
known_hashes: frozenset = frozenset(dedup._by_hash.keys())
n_workers = workers or os.cpu_count() or 4
n_workers = workers or cfg.workers or os.cpu_count() or 4
console.print(f"Using [bold]{n_workers}[/bold] worker processes.")
owner = {"handle": cfg.owner_handle, "display_name": cfg.owner_display_name}