Skip to content

Commit

Permalink
fixup! Issue with caller capturing value of checkTimeLimit bash function
Browse files Browse the repository at this point in the history
  • Loading branch information
wwlwpd committed Sep 25, 2024
1 parent 1d7e6e5 commit 8ae7e1c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions asgs_main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -938,7 +938,7 @@ prepFile()

fi
done
monitorJobs $QUEUESYS ${JOBTYPE} ${ENSTORM} $WALLTIME
monitorJobs "$QUEUESYS" "${JOBTYPE}" "${ENSTORM}" "$WALLTIME"
THIS="asgs_main.sh>prepFile()"
logMessage "$ENSTORM: $THIS: Finished adcprepping file ($JOBTYPE)."
;;
Expand Down Expand Up @@ -2066,7 +2066,7 @@ if [[ $START = coldstart ]]; then
submitJob $QUEUESYS $NCPU $ADCIRCDIR $ADVISDIR $SCRIPTDIR $INPUTDIR $ENSTORM $HPCENVSHORT $ACCOUNT $PPN $NUMWRITERS $HOTSTARTCOMP $HINDCASTWALLTIME $JOBTYPE
THIS="asgs_main.sh"
# check once per minute until all jobs have finished
monitorJobs $QUEUESYS ${JOBTYPE} ${ENSTORM} $HINDCASTWALLTIME
monitorJobs "$QUEUESYS" "${JOBTYPE}" "${ENSTORM}" "$HINDCASTWALLTIME"
THIS="asgs_main.sh"
# check to see that the hindcast job did not conspicuously fail
handleFailedJob $RUNDIR $ADVISDIR $ENSTORM ${OUTPUTDIR}/${NOTIFY_SCRIPT} $HPCENV hindcast $YEAR $STORMDIR $ADVISORY $LASTADVISORYNUM $STATEFILE $GRIDFILE $EMAILNOTIFY "${JOB_FAILED_LIST}" $ARCHIVEBASE $ARCHIVEDIR
Expand Down Expand Up @@ -2690,7 +2690,7 @@ while [ true ]; do
submitJob $QUEUESYS $NCPU $ADCIRCDIR $ADVISDIR $SCRIPTDIR $INPUTDIR $ENSTORM $HPCENVSHORT $ACCOUNT $PPN $NUMWRITERS $HOTSTARTCOMP $NOWCASTWALLTIME $JOBTYPE
THIS="asgs_main.sh"
# check once per minute until all jobs have finished
monitorJobs $QUEUESYS ${JOBTYPE} ${ENSTORM} $NOWCASTWALLTIME
monitorJobs "$QUEUESYS" "${JOBTYPE}" "${ENSTORM}" "$NOWCASTWALLTIME"
THIS="asgs_main.sh"
# check to see that the nowcast job did not conspicuously fail
handleFailedJob $RUNDIR $ADVISDIR $ENSTORM ${OUTPUTDIR}/${NOTIFY_SCRIPT} $HPCENV $STORMNAME $YEAR $STORMDIR $ADVISORY $LASTADVISORYNUM $STATEFILE $GRIDFILE $EMAILNOTIFY "${JOB_FAILED_LIST}" $ARCHIVEBASE $ARCHIVEDIR
Expand Down Expand Up @@ -3174,7 +3174,7 @@ while [ true ]; do
# in the background ... this allows us to go on to the
# next scenario
(
monitorJobs $QUEUESYS ${JOBTYPE} ${ENSTORM} $FORECASTWALLTIME
monitorJobs "$QUEUESYS" "${JOBTYPE}" "${ENSTORM}" "$FORECASTWALLTIME"
THIS="asgs_main.sh"
handleFailedJob $RUNDIR $ADVISDIR $ENSTORM ${OUTPUTDIR}/${NOTIFY_SCRIPT} $HPCENV $STORMNAME $YEAR $STORMDIR $ADVISORY $LASTADVISORYNUM $STATEFILE $GRIDFILE $EMAILNOTIFY "${JOB_FAILED_LIST}" $ARCHIVEBASE $ARCHIVEDIR
THIS="asgs_main.sh"
Expand Down

0 comments on commit 8ae7e1c

Please sign in to comment.