!--------------------------------------------------------------------
!
! Name: rsvacs.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 file trigger.
!
!--------------------------------------------------------------------
!                          REVISION HISTORY
!--------------------------------------------------------------------
!            PR
!   DATE   NUMBER User       Description
! -------- ------ ---------- -------------------------------------
! 04/03/00        MSwam      first version 
! 09/30/03 49496  MSwam      add ASN creation for OTFSCI pipeline
! 09/18/12 72255  Sherbert   get rid of DSQUERY
!
!--------------------------------------------------------------------
PROCESS_NAME = rsvacs           ! Short name for process id
TASK = <xpoll -p $PATH_FILE -r rsvacs>
COMMAND  = reserve.pl            ! Name of the command procedure
DESCRIPTION = 'Reserves pipeline names for processing'
SYSTEM = OTFR
CLASS = otf 

OSF_RANK        = 1             ! First Trigger
                                
OSF_TRIGGER1.RV      = w        ! OSF status column and
OSF_TRIGGER1.DATA_ID = aca      ! OSF data_id field
OSF_TRIGGER2.RV      = w        ! OSF status column and
OSF_TRIGGER2.DATA_ID = acs      ! OSF data_id field

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

OSF_NORMAL.RV      = c          ! Normal: Completed
OSF_NORMAL.MV      = w          ! Normal: Waiting for next stage

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

TRY_LATER.RV       = z          ! Pipeline collision; try again later

XPOLL_STATE.00 = OSF_NORMAL
XPOLL_STATE.01 = OSF_ERROR
XPOLL_STATE.02 = TRY_LATER

XPOLL_ERROR_COUNT = 1           ! exit if any error occurs (for now)

XPOLL_ERROR.RV = x              ! Set osf to this if exit state is undefined.

POLLING_TIME  = 10              ! Wait (seconds) before polling for next 

ENV.RESERVATION_PATH = reservation_path ! path for creating reservation OSFs
ENV.OTFSCI_PATH    = data_reduction_path ! path for OTF science processing
ENV.OTFSCI_CAL_DIR = acs_cal_dir        ! calibration dir for OTF science
ENV.ASN_CLASS      = aca                ! used to create association OSF in
ENV.ASN_STEP       = DC                 !   the OTF science pipeline
ENV.MEM_VAIT       = v

ENV.OPUS_SERVER = OPUS_SERVER
ENV.OPUS_DB      = OPUS_DB
ENV.OUTPATH      = acs_recalib ! root directory for instrument calibration
MINBLOCKS        = 50000          ! enough for a little file
