Skip to content

Commit

Permalink
Update vrfy/metp jobs to use jobid in their DATAROOT folders (#414)
Browse files Browse the repository at this point in the history
Update vrfy/metp jobs to use jobid in their respective DATAROOT folder names; fixes race condition between vrfy and metp jobs

Refs: #401
  • Loading branch information
KateFriedman-NOAA committed Aug 18, 2021
1 parent 9233d96 commit 7f0f740
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion jobs/rocoto/metp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,10 @@ status=$?
export COMPONENT=${COMPONENT:-atmos}
export VDATE="$(echo $($NDATE -${VRFYBACK_HRS} $CDATE) | cut -c1-8)"

export pid=${pid:-$$}
export jobid=${job}.${pid}
export COMIN="$ROTDIR/$CDUMP.$PDY/$cyc/$COMPONENT"
export DATAROOT="$RUNDIR/$CDATE/$CDUMP/vrfy"
export DATAROOT="$RUNDIR/$CDATE/$CDUMP/metp.${jobid}"
[[ -d $DATAROOT ]] && rm -rf $DATAROOT
mkdir -p $DATAROOT

Expand Down
4 changes: 3 additions & 1 deletion jobs/rocoto/vrfy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,10 @@ export COMPONENT=${COMPONENT:-atmos}
export CDATEm1=$($NDATE -24 $CDATE)
export PDYm1=$(echo $CDATEm1 | cut -c1-8)

export pid=${pid:-$$}
export jobid=${job}.${pid}
export COMIN="$ROTDIR/$CDUMP.$PDY/$cyc/$COMPONENT"
export DATAROOT="$RUNDIR/$CDATE/$CDUMP/vrfy"
export DATAROOT="$RUNDIR/$CDATE/$CDUMP/vrfy.${jobid}"
[[ -d $DATAROOT ]] && rm -rf $DATAROOT
mkdir -p $DATAROOT

Expand Down
2 changes: 1 addition & 1 deletion parm/config/config.post
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ else
fi

export GRIBVERSION='grib2'
export SENDCOM=${SENDCOM:-"YES"}
export SENDCOM="YES"

echo "END: config.post"

0 comments on commit 7f0f740

Please sign in to comment.