Skip to content

Commit

Permalink
added exit status to pbs bash script
Browse files Browse the repository at this point in the history
  • Loading branch information
jmills-ncar committed Aug 1, 2018
1 parent 4b23ee4 commit 515bbc9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wrfhydropy/core/schedulers.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ def _write_job_pbs(self,jobs):
jobstr += "export MPI_USE_ARRAY=false\n"

jobstr += '{0} run_job.py --job_id {1}\n'.format(python_path, job.job_id)
jobstr += 'exit $?\n'

pbs_file = job.job_dir.joinpath('job_' + job.job_id + '.pbs')
with pbs_file.open(mode='w') as f:
Expand Down

0 comments on commit 515bbc9

Please sign in to comment.