Skip to content

Commit

Permalink
Merge pull request #167 from cs50/develop
Browse files Browse the repository at this point in the history
check50 max workers
  • Loading branch information
Jelleas authored Jul 30, 2019
2 parents 077f521 + faa2e92 commit b4efa93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion check50/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

0 comments on commit b4efa93

Please sign in to comment.