diff --git a/wrfhydropy/core/schedulers.py b/wrfhydropy/core/schedulers.py index 7df0eee1..abc0a8ec 100644 --- a/wrfhydropy/core/schedulers.py +++ b/wrfhydropy/core/schedulers.py @@ -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: