Skip to content

Commit 0693953

Browse files
Add check for prepbufr at end of prep job (NOAA-EMC#3816)
This PR adds a check for the existence of a prepbufr file to the end of the prep job script. This check will help resolve a silent failure when the prepbufr file generation fails but the error code does not get sent up to the workflow level from the obsproc/prepobs package. Resolves NOAA-EMC#691 --------- Co-authored-by: Rahul Mahajan <aerorahul@users.noreply.github.com>
1 parent dcc759a commit 0693953

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

dev/jobs/prep.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,11 @@ if [[ ${err} -ne 0 ]]; then
130130
err_exit "JOBSPROC_GLOBAL_PREP job failed!"
131131
fi
132132

133+
if [[ ! -f "${COMOUT_OBS}/${OPREFIX}prepbufr" ]]; then
134+
export err=1
135+
err_exit "JOBSPROC_GLOBAL_PREP failed to create the prepbufr file, ABORT!"
136+
fi
137+
133138
# If creating NSSTBUFR was disabled, copy from DMPDIR if appropriate.
134139
if [[ ${MAKE_NSSTBUFR:-"NO"} = "NO" ]]; then
135140
if [[ ${DONST} = "YES" ]]; then

0 commit comments

Comments
 (0)