!--------------------------------------------------------------------
!
! Name: retrig_cdbs.resource
!
! Purpose: This file is used to construct the trigger, error, and 
!          success status fields in the observation status file.
!
! This resource file uses a time trigger. 
! It runs in the HST CDBS pipeline.
!
!--------------------------------------------------------------------
!                          REVISION HISTORY
!--------------------------------------------------------------------
!           PR
!   DATE   NUMBER  User       Description
! -------- ------  ---------- -------------------------------------
! 12/07/99 37784   MSwam      first version
! 04/05/01 43165_16 MSwam     replace shell script with perl
! 11/09/01 44616   MSwam      add P1 and P2 stages
! 07/30/02 45279   MSwam      remove P1,P2 retriggering
! 04/14/04 48141   MSwam      add FB retry
! 04/17/12 70833   Sherbert   use consistent naming convention
!--------------------------------------------------------------------

PROCESS_NAME = retrig_cdbs            ! retrigger process for CDBDEL
TASK         = <xpoll -p $PATH_FILE -r retrig_cdbs >
COMMAND      = retrigger.pl           ! Name of the command procedure

DESCRIPTION  = 'Perform retriggering of process'
SYSTEM = CDBS
CLASS = cdb

TIME_RANK            = 1           !Time trigger periodically
DELTA_TIME           = 000:00:30:00
POLLING_TIME         = 60
!
! 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
! If more are added, please remember to update the cdbs.stage file
!
ENV.SEARCH_OSF.DE  = z    ! search condition for retrigger candidate
ENV.SET_OSF.DE     = w    ! action to take when this candidate is found
ENV.SEARCH_OSF.FB  = z    ! search condition for retrigger candidate
ENV.SET_OSF.FB     = w    ! action to take when this candidate is found
