!-------------------------------------------------------------------------------
!
!  tvretry RESOURCE FILE
!
!    This file is used to define the resource values to enable
!    the CP stage in a TV pipeline to be retriggered
!
!-------------------------------------------------------------------------------
!                          REVISION HISTORY
!-------------------------------------------------------------------------------
!           PR
! yy/mm/dd NUMBER  User       Description
! -------- ------  ---------- --------------------------------------------------
! 07/07/16         Sherbert   first version
!
!-------------------------------------------------------------------------------

PROCESS_NAME = tvretry   ! retrigger process for tvretry
TASK         = <xpoll -p $PATH_FILE -r tvretry >
DESCRIPTION  = 'Retry ingest'
COMMAND      = retrigger.pl
SYSTEM       = OPUS
CLASS        = tv

TIME_RANK            = 1            ! Time trigger periodically
DELTA_TIME           = 000:00:10:00 ! As specified ddd:hh:mm:ss
POLLING_TIME         = 60           ! Seconds

! Valid exit codes for COMMAND that allow XPOLL to continue.
! All other XPOLL states will cause process to go ABSENT.
! (The labels are not used for TIME events)

XPOLL_STATE.00 = TRIG_OK

XPOLL_ERROR_COUNT = 20          ! This many errors before process goes absent

! These are the retriggering conditions
!

ENV.SEARCH_OSF.CP = r		! Retrigger: when this status is found in CP
ENV.SET_OSF.CP    = w		! Retrigger:   reset to w so it is picked up again
