Skip to content

Commit

Permalink
restarting failed process doesn't work, exit again
Browse files Browse the repository at this point in the history
  • Loading branch information
LaraFuhrmann committed Jun 11, 2024
1 parent ecda5ab commit a644e9b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions viloca/b2w.py
Original file line number Diff line number Diff line change
Expand Up @@ -610,9 +610,8 @@ def build_windows(alignment_file: str, tiling_strategy: TilingStrategy,
for p in all_processes:
p.join()
if p.exitcode != 0:
p.start()
logging.debug("[b2w] A process was killed. Terminating the program. Process was restarted.")
#exit(1)
logging.debug("[b2w] A process was killed. Terminating the program.")
exit(1)

logging.debug("[b2w] All processes completed successfully.")

Expand Down
5 changes: 2 additions & 3 deletions viloca/shotgun.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,9 +517,8 @@ def main(args):
for p in all_processes:
p.join()
if p.exitcode != 0:
p.start()
logging.debug("[shotgun] A process was killed. Restart process.")
#exit(1)
logging.debug("[shotgun] A process was killed. Terminating program.")
exit(1)

logging.debug("[shotgun] All processes completed successfully.")

Expand Down

0 comments on commit a644e9b

Please sign in to comment.