Skip to content

Commit

Permalink
reduced maxtasksperchild to 2 from 4 to reduce multiprocessing hangs
Browse files Browse the repository at this point in the history
  • Loading branch information
astro-friedel committed Mar 26, 2020
1 parent 9557ecb commit 26c2abd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libexec/pfwrunjob.py
Original file line number Diff line number Diff line change
Expand Up @@ -1649,7 +1649,7 @@ def job_workflow(workflow, jobfiles, jbwcl=WCL(), pfw_dbh=None):
#print("MULTITHREADED -------------------------------------------------------------")
numjobs = len(procs)
# set up the thread pool
pool = mp.Pool(processes=nproc, maxtasksperchild=4)
pool = mp.Pool(processes=nproc, maxtasksperchild=2)
outq = manager.Queue()
errq = manager.Queue()
with lock_monitor:
Expand Down

0 comments on commit 26c2abd

Please sign in to comment.