Skip to content

Commit

Permalink
Error out when submitted process fails!
Browse files Browse the repository at this point in the history
  • Loading branch information
SorooshMani-NOAA committed Jun 2, 2023
1 parent f7389cf commit e01510b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyschism/forcing/bctides/bctides.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,8 @@ def write_sal3D():
job.start()
for job in jobs:
job.join()
if any(j.exitcode != 0 for j in jobs):
raise RuntimeError("Some parallel writer jobs failed!")
else:
if elev2D:
write_elev2D()
Expand Down

0 comments on commit e01510b

Please sign in to comment.