#PBS -N transfers_check_clean_url_%TIME%
#PBS -j oe
#PBS -S /bin/bash
#PBS -A %PROJ%-%PROJENVIR%
#PBS -q prod_transfer
#PBS -l walltime=00:10:00
#PBS -l select=1:ncpus=1:mem=1000mb
#PBS -l place=shared
#PBS -l debug=true
export model=transfers
%include
%include
export RUN=transfers
export cyc=$(date -u +%%H)
export DAYS=${DAYS:-%DAYS:1%}
export DATES=${DATES:-%DATES:""%}
#############################################################
# Load modules
#############################################################
module load PrgEnv-intel/${PrgEnv_intel_ver}
module load intel/${intel_ver}
module load python/${python_ver}
module load rsync/${rsync_ver}
module list
${HOMEtransfers}/jobs/JTRANSFER_WCOSS_CHECK_CLEAN_URL
%include
%manual
######################################################################
# Purpose: To execute the setup_transfers_catchup script.
# It runs as needed to setup transfer catchup family, specially
# after the WCOSS2 outage
#
# Usage: Use the ecflow "V" varaible to setup the following inputs -
# DAYS - number of days to catchup for transfer data
# default 1
# DATES - YYYYMD1 YYYYMMD2 .. - specified date(s) for transfer
# data, if DATES is set, it will take precedence over DAYS
# default "" (empty)
#
#
#######################################################################
%end