#PBS -S /bin/bash #PBS -N %RUN%_gfs_manager_%CYC%%VER:% #PBS -j oe #PBS -q %QUEUE% #PBS -A %PROJ%-%PROJENVIR% #PBS -l walltime=03:00:00 #PBS -l select=1:ncpus=1 #PBS -l debug=true export model=wafs %include %include set -x export NET=%NET% export RUN=%RUN% export cyc=%CYC% ############################################################ # Load modules ############################################################ set +x module list set -x ############################################################ # CALL executable job script ############################################################ ${HOMEwafs}/jobs/JWAFS_GFS_MANAGER if [ $? -ne 0 ]; then ecflow_client --msg="***JOB ${ECF_NAME} ERROR RUNNING J-SCRIPT ***" ecflow_client --abort exit fi %include %manual TASK: JWAFS_GFS_MANAGER PURPOSE: Look for GFS forecast model output and trigger the following jobs: JWAFS_UPP: Offline UPP with GTG JWAFS_GCIP: Icing analysis as a downstream of GFS master file JWAFS_GRIB: GFS WAFS GRIB1 product as a downstream of GFS master file This job will look for GFS forecast model output, and trigger the above jobs for each of the forecast hour that the products are desired. The job will timeout in 10800 seconds (3 hours) if the forecast model output is not available. The job will skip any intermediate forecast hour if the forecast model output is not available for that forecast hour TROUBLESHOOTING If this job fails, re-queuing the job is probably not the best idea as it may release the triggers for already launched/completed downstream jobs. In that case, it is perhaps better to boot the downstream jobs mentioned in the purpose for the failed forecast hours. %end