Skip to content

Commit

Permalink
Merge pull request #83 from martinghunt/multiprocessing_bugs
Browse files Browse the repository at this point in the history
Stop returning error when all clusters successful
  • Loading branch information
martinghunt committed May 12, 2016
2 parents 69c7b18 + b5b1b83 commit f576002
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions ariba/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,14 +134,9 @@ def __init__(self,


def _atexit(self):
print('Error in cluster', self.name, '... Stopping!', file=sys.stderr, flush=True)
if self.log_fh is not None:
pyfastaq.utils.close(self.log_fh)
self.log_fh = None
if self.fail_file is not None:
with open(self.fail_file, 'w') as f:
pass
os._exit(1)


def _receive_signal(self, signum, stack):
Expand Down Expand Up @@ -434,3 +429,4 @@ def _run(self):
print('\nMaking report lines', file=self.log_fh, flush=True)
self.report_lines = report.report_lines(self)
self._clean()
atexit.unregister(self._atexit)

0 comments on commit f576002

Please sign in to comment.