Skip to content

Commit

Permalink
Return YAMLParserNS max_workers to 20
Browse files Browse the repository at this point in the history
  • Loading branch information
makyen committed Nov 17, 2024
1 parent 8bae1fd commit 2ea03ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blacklists.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ def item_check(ns):
def validate_list(self, list_to_validate):
# 20 max_workers appeared to be reasonable. When 30 or 50 workers were tried,
# it appeared to result in longer times and intermittent failures.
with ThreadPoolExecutor(max_workers=10) as executor:
with ThreadPoolExecutor(max_workers=20) as executor:
return list(executor.map(self._validate, list_to_validate, timeout=300))

def validate(self):
Expand Down

0 comments on commit 2ea03ab

Please sign in to comment.