Skip to content

Commit

Permalink
fix: remove workers count limit
Browse files Browse the repository at this point in the history
  • Loading branch information
monosans committed Oct 30, 2024
1 parent c48ad92 commit 786e87c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion djlint/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,11 @@ def main(
echo()

progress_char = " »" if sys.platform == "win32" else "┈━"
worker_count = min(os.cpu_count() or 1, len(file_list), 4)

worker_count = os.cpu_count() or 1
if sys.platform == "win32":
worker_count = min(worker_count, 60)

executor_cls = (
ProcessPoolExecutor if worker_count > 1 else ThreadPoolExecutor
)
Expand Down

0 comments on commit 786e87c

Please sign in to comment.