!--------------------------------------------------------------------
!
! Name: retrig_ingest.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 INGEST pipeline.
!
!--------------------------------------------------------------------
!                          REVISION HISTORY
!--------------------------------------------------------------------
!            PR
!   DATE   NUMBER User       Description
! -------- ------ ---------- ----------------------------------------
! 11/18/03 49550  Goldst     Created initial version
! 04/17/12 70833  Sherbert   use consistent naming convention
!--------------------------------------------------------------------

PROCESS_NAME = retrig_ingest
TASK         = <xpoll -p $PATH_FILE -r retrig_ingest >
DESCRIPTION  = 'Retry ingest'
COMMAND      = retrigger.pl
SYSTEM       = INGEST
CLASS        = all

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
! If more are added, please remember to update the ingest_pipeline.stage file
!

ENV.SEARCH_OSF.RS  = z    ! search condition for retrigger candidate
ENV.SET_OSF.RS     = w    ! action to take when this candidate is found
