!--------------------------------------------------------------------
!
! Name: colacs.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 
! 03/12/01 43165_05 MSwam     move indirection to path
! 11/26/01 44598_01 MSwam     parameterize calibration stage name
! 05/25/05 53578   Sherbert   Make consistent w/colxxx
!
!--------------------------------------------------------------------
PROCESS_NAME = colacs           ! Short name for process id
TASK = <xpoll -p $PATH_FILE -r colacs>
COMMAND  = reqcol.pl            ! Name of the command procedure
DESCRIPTION = 'Collects calibration for return to DADS'
SYSTEM = OTFR
CLASS = otf 

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

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

OSF_NORMAL.DC      = c          ! Normal: Completed
OSF_NORMAL.2G      = n          ! Normal: not needed
OSF_NORMAL.2F      = w          ! Normal: Waiting for next stage

OSF_NOT_READY.DC   = z          ! Not ready: sleep and try later

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

FLUSHING.DC      = f          ! Timeout occurred: flushing this request
FLUSHING.2G      = n          !         Waiting for next stage
FLUSHING.2F      = w          !         Waiting for next stage

XPOLL_STATE.00 = OSF_NORMAL
XPOLL_STATE.01 = OSF_ERROR
XPOLL_STATE.03 = OSF_NOT_READY
XPOLL_STATE.04 = FLUSHING

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

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

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

ENV.OUTPATH      = acs_recalib    ! root directory for instrument calibration
MINBLOCKS        = 1000000          ! enough for several POD files

ENV.CAL_DIR              = acs_cal_dir          ! location of CAL data
ENV.DATA_REDUCTION_PATH  = data_reduction_path  ! path for data reduction pipeline
ENV.TIMEOUT_INTERVAL     = max_time_for_otfsci  ! timeout if otfsci not complete
ENV.ARCH_SERVER      = ARCH_SERVER
ENV.ARCH_DB          = ARCH_DB
ENV.CAL_STAGE_NAME       = cal_stage_name
