Skip to content

Commit

Permalink
Better hygiene in use of Pool in run_regression (castorini#1743)
Browse files Browse the repository at this point in the history
  • Loading branch information
lintool authored Jan 19, 2022
1 parent 66ac36b commit d7a5d6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/python/run_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def run_search(cmd):
for cmd in search_cmds:
logger.info(' '.join(cmd))
else:
p = Pool(args.search_pool)
p.map(run_search, search_cmds)
with Pool(args.search_pool) as p:
p.map(run_search, search_cmds)

evaluate_and_verify(yaml_data, args.dry_run)

0 comments on commit d7a5d6c

Please sign in to comment.