!-------------------------------------------------------------------------------
!
! Name: retrig_opus_science.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 OPUS SCIENCE pipeline.
!
!-------------------------------------------------------------------------------
!                          REVISION HISTORY
!-------------------------------------------------------------------------------
!            PR
! yy/mm/dd NUMBER Developer  Description
! -------- ------ ---------- ------------------------------------------------
! 12/04/06 70831  Sherbert   Look for pod locks and reset hkp to try again 
!-------------------------------------------------------------------------------

PROCESS_NAME = retrig_opus_science    ! retriggers known GC errors
TASK         = <xpoll -p $PATH_FILE -r retrig_opus_science >
COMMAND      = retrigger.pl           ! Name of the command procedure

DESCRIPTION  = 'Perform retriggering of process'
SYSTEM = OPUS
CLASS = ALL

TIME_RANK            = 1           !Time trigger periodically
DELTA_TIME           = 000:00:10: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 opus_science_pipeline.stage file
!
ENV.SEARCH_OSF.SC  = h    ! search condition for retrigger candidate
ENV.SET_OSF.SC     = u    ! action to take when this candidate is found
