!--------------------------------------------------------------------
!
! TEMPORARY OVERRIDE: SKIP REMOTE SITE TRANSFER FOR ACS DKC FILES FOR NOW...
!
!      cdbtar RESOURCE FILE
!
!--------------------------------------------------------------------
!                          REVISION HISTORY
!--------------------------------------------------------------------
!  MOD             PR
! LEVEL   DATE   NUMBER    User  Description
! ----- -------- ------    ------ -------------------------------------
!       04/11/03 48141     MSwam   first version
!       02/18/05 51570     Sontag  Handle unexpected error statuses
!--------------------------------------------------------------------
!
COMMAND                 = 'cdb_tar.py'
TASK                    = <xpoll -p $PATH_FILE -r cdbtar>
!
CLASS = cdb
DESCRIPTION = 'CDBS create a tar package'
SYSTEM = CDBS
!
OSF_RANK           = 1
OSF_TRIGGER1.TA    = w          ! Need a 'Wait' flag to proceed
OSF_TRIGGER1.DATA_ID = ref

OSF_PROCESSING.TA  = p          ! Set the processing flag to 'Processing'

OSF_NORMAL.TA      = c          ! Normal: Completed this process
OSF_NORMAL.P1      = w          ! Normal: Parallel copies
OSF_NORMAL.P2      = w          !

OSF_ERROR.TA       = e          ! Error:  Set the error flag

NO_REMOTE_TRANSFER.TA = n      ! SKIP transfer to remote sites for DKC files
NO_REMOTE_TRANSFER.P1 = n
NO_REMOTE_TRANSFER.P2 = n
NO_REMOTE_TRANSFER.PS = n
NO_REMOTE_TRANSFER.DK = w

POLLING_TIME       = 60         !required
XPOLL_ERROR_COUNT  = 1          !this many XPOLL errors will cause the
                                !process to go ABSENT
!
! Valid exit codes for COMMAND that allow XPOLL to continue.
! (The labels are not used for TIME events)
XPOLL_STATE.00 = OSF_NORMAL
XPOLL_STATE.01 = OSF_ERROR
XPOLL_STATE.03 = NO_REMOTE_TRANSFER ! SKIP remote site transfer for now
XPOLL_ERROR.TA = x              ! handle entirely unexpected failure cases

! controls cleanup by cleandata
DATA_DELETE_LOCATION.03 = cdbs_input_dir
DATA_DELETE_FILTER.03   = <OSF_DATASET>.tar.gz

ENV.CATALOG_FILE_EXT        = .cat  !file extension for catalogs
ENV.CDB_IN_DIR              = cdbs_input_dir
ENV.OUTGOING1_DIR           = outgoing_remote1_dir !area for copying to site1
ENV.OUTGOING2_DIR           = outgoing_remote2_dir !area for copying to site2
