From faa2e9299fe211b5d5d8223dd4cc3f31dd2d28f4 Mon Sep 17 00:00:00 2001 From: jelleas Date: Mon, 29 Jul 2019 21:41:55 -0400 Subject: [PATCH] check50 max workers --- check50/runner.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/check50/runner.py b/check50/runner.py index 247f727f..35183756 100644 --- a/check50/runner.py +++ b/check50/runner.py @@ -202,7 +202,7 @@ def run_all(self, files, working_area): # NOTE: Requires CPython 3.6. If we need to support older versions of Python, replace with OrderedDict. results = {name: None for name in self.check_names} checks_root = working_area.parent - with futures.ProcessPoolExecutor() as executor: + with futures.ProcessPoolExecutor(max_workers=os.environ.get("CHECK50_WORKERS")) as executor: # Start all checks that have no dependencies not_done = set(executor.submit(run_check(name, self.checks_spec, checks_root)) diff --git a/setup.py b/setup.py index 3534bd48..37ebb95d 100644 --- a/setup.py +++ b/setup.py @@ -26,6 +26,6 @@ "console_scripts": ["check50=check50.__main__:main"] }, url="https://github.com/cs50/check50", - version="3.0.1", + version="3.0.2", include_package_data=True )