!--------------------------------------------------------------------
!
!      cdbnewexp RESOURCE FILE
!
!
!--------------------------------------------------------------------
!                          REVISION HISTORY
!--------------------------------------------------------------------
!  MOD             PR
! LEVEL   DATE   NUMBER    User  Description
! ----- -------- ------    ------ -------------------------------------
!       04/11/03 48141     MSwam   first version
!       10/20/04 51433     MSwam   fix time triggering, adjust e-mail lists
!       11/08/07 56836   Sherbert  Add COS, WF3 to supported SIs list
!       07/20/11 67900     MSwam   Replace CDBS_SERVER,DB with REFFILE_SERVER,DB
!                                    to agree with the code
!       09/10/12 70213     MSwam   shorten script name for OPUS problem
!--------------------------------------------------------------------
!
COMMAND                 = 'cdb_newexp.csh ^CL'
TASK                    = <xpoll -p $PATH_FILE -r cdbnewexp>
!
CLASS = bst
DESCRIPTION = 'BESTREF update ref files for new exposures'
SYSTEM = CDBS
!
TIME_RANK          = 1            ! time trigger twice a day
DELTA_TIME         = 000:12:00:00

POLLING_TIME       = 60         !required
XPOLL_ERROR_COUNT  = 1          !this many XPOLL errors will cause the
                                !process to go ABSENT
!
! 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 = OSF_NORMAL
XPOLL_STATE.01 = OSF_ERROR

MINBLOCKS              = 20000    !space for SQL files and logs
ENV.OUTPATH            = bestref_log_dir
ENV.OPERATOR_MAIL_LIST = operator_newexp_email_list
!
! This list of instruments can't be put in the path file because
! of the way it is parsed and used in the cdb_new_exposures.sh script
! (the parsing requires a quoted white-space delimited list, and
!  pulling it through the path file apparently gets rid of the quotes)
ENV.SUPPORTED_INSTR    = 'acs wfpc2 stis nicmos cos wfc3'

ENV.ARCH_SERVER        = ARCH_SERVER
ENV.ARCH_DB            = ARCH_DB    
ENV.REFFILE_SERVER     = REFFILE_SERVER
ENV.REFFILE_DB         = REFFILE_DB    
ENV.KW_SERVER          = KW_SERVER
ENV.KW_DB              = KW_DB
