Skip to content

Commit

Permalink
If computeMgr.startworkers raises exception, then computeMgr should s…
Browse files Browse the repository at this point in the history
…till be shutdown
  • Loading branch information
neilflood committed Oct 19, 2024
1 parent 2a84212 commit d543e3c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rios/applier.py
Original file line number Diff line number Diff line change
Expand Up @@ -1149,6 +1149,7 @@ def apply_multipleCompute(userFunction, infiles, outfiles, otherArgs,
tmpfileMgr=tmpfileMgr, haveSharedTemp=concurrency.haveSharedTemp,
exceptionQue=exceptionQue)
except Exception as e:
computeMgr.shutdown()
if readWorkerMgr is not None:
readWorkerMgr.shutdown()
raise e
Expand Down

0 comments on commit d543e3c

Please sign in to comment.