Changeset 32876
- Timestamp:
- Dec 7, 2011, 10:20:55 AM (15 years ago)
- Location:
- trunk/ippdor/src/ipp
- Files:
-
- 4 edited
-
ChipManager.py (modified) (1 diff)
-
constants/Chip.py (modified) (3 diffs)
-
constants/Globals.py (modified) (4 diffs)
-
constants/__init__.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdor/src/ipp/ChipManager.py
r32874 r32876 226 226 self.send_email('Chip stage failed for label %s / exposure %s)' % (self.label, 227 227 self.exposure_name), 228 body )228 body % (GlobalConstants.LOCAL_TMP_DIR)) 229 229 print 'EMail sent to [%s]' % self.recipient 230 230 raise IppException('Chip stage failed for label %s / exposure %s)' % (self.label, self.exposure_name)) -
trunk/ippdor/src/ipp/constants/Chip.py
r32874 r32876 10 10 class Chip: 11 11 """ 12 This class is not intended to be used as a class instance.12 This class is not intended to be instantiated. 13 13 All its members are static. 14 14 """ … … 18 18 REQUIREMENTS = 'LoadAvg < 0.3' 19 19 email_subject = '' 20 21 # This is the e-mail body which is sent when revert as 22 # failed. Some values need to be replaced, namely: 23 # - @COUNT_FAILED_CHIPS@: the number of chips which have failed; 24 # - @LABEL@: the label; 25 # - @EXPOSURE_NAME@: the exposure name; 26 # - @LIST_PROCESSING_LOGS@: the list of log files that should be 27 # checked by the operator; 28 # - @CHIPTOOL_UPDATEPROCESSEDIMFILE@: the list of commands that 29 # could be run to ignore some flaky OTAs 30 # - @CHIPTOOL_REVERTPROCESSEDIMFILE@: the command that shoudl be 31 # run to revert the exposure. 32 # It is also expected to valuate this expression with one argument: 33 # - #1: The path to Globals.LOCAL_TMP_DIR 20 34 email_body_failed_revert = """Hi, 21 35 … … 38 52 39 53 Once you have FIXED ALL PROBLEMS FOR ALL EXPOSURES, on the host where the Condor task was submitted, submit the DAG (the host name is shown in the following line) again: 40 condor_submit_dag -maxidle 1000 -maxjobs 500 %s/ %s/ch2st.dag54 condor_submit_dag -maxidle 1000 -maxjobs 500 %s/@LABEL@/ch2st.dag 41 55 42 56 Thanks, -
trunk/ippdor/src/ipp/constants/Globals.py
r32874 r32876 1 1 """ 2 2 This is the file in which all constants relative to the Condor-IPP 3 framework are defined. It defines the following data members3 framework are defined. It defines the following constants 4 4 (depending on the hostname value): 5 5 6 - LOCAL_TMP_DIR 7 - NFS_TMP_DIR 8 - IPP_BIN_PATH 9 - 6 - IPPDOR_BINARY_PATH: the path to ippdor executables (they do not 7 strictly have to be binaries) 8 - LOCAL_TMP_DIR: The local file system where some files can be 9 stored. On the IPP production cluster, it is dependent on the host 10 name. 11 - NFS_TMP_DIR: The NFS file system where some files are located. 12 - IPP_BIN_PATH: The path to the IPP executables. It is recommended to 13 leave it to a fixed value (like current.lin64) and to relink 14 current.lin64 to any new install. 10 15 """ 11 16 … … 15 20 class Globals: 16 21 """ 17 This class is not intended to be used as a class instance.18 All its members are static .22 This class is not intended to be instantiated. 23 All its members are static (and constant). 19 24 """ 20 25 def __init__(self): 26 """We don't want this class to be instantiated""" 21 27 raise UninstantiableIppException() 22 28 … … 38 44 GENERATE_EXPOSURE_DAG = '%s/generate_exposure_dag.py %s %s %s' % (IPPDOR_BINARY_PATH, '%s', '%s', '%s') 39 45 46 ################### 40 47 # IPP executables 48 ################### 49 # Chip stage 41 50 CHIPTOOL = '%s/chiptool -dbname gpc1' % IPP_BIN_PATH 42 51 CHIPIMFILE = '%s/chip_imfile.pl --dbname gpc1 --redirect-output --verbose --threads 1' % IPP_BIN_PATH 43 52 53 # Cam stage 44 54 CAMTOOL = '%s/camtool' % IPP_BIN_PATH 45 55 CAMEXP = '%s/camera_exp.pl --dbname gpc1 --redirect-output --verbose' % IPP_BIN_PATH 46 56 57 # Fake stage 47 58 FAKETOOL = '%s/faketool -dbname gpc1' % IPP_BIN_PATH 48 59 FAKE_IMFILE = '%s/fake_imfile.pl -dbname gpc1 --redirect-output --verbose' 49 60 61 # Warp stage 50 62 WARPTOOL = '%s/warptool -dbname gpc1' % IPP_BIN_PATH 51 63 WARP_OVERLAP = '%s/warp_overlap.pl --dbname gpc1' % IPP_BIN_PATH … … 53 65 WARP_JPEG = '%s/skycell_jpeg.pl -dbname gpc1 -stage warp' % IPP_BIN_PATH 54 66 67 # Stack stage 55 68 STACKTOOL = '%s/stacktool' % IPP_BIN_PATH -
trunk/ippdor/src/ipp/constants/__init__.py
r32874 r32876 1 1 """ 2 This module is the place where all constants are defined2 This package is the package where constants are defined. 3 3 4 TODO: anything else? 4 - The Globals module defines constants which can be used anywhere. It 5 is also the module where path to executables are defined; 6 7 - The Chip module defines constants relative to the Chip stage (but 8 the executables) 9 10 - The Cam module defines constants relative to the Camera stage (but 11 the executables) 12 13 - The Fake module defines constants relative to the Fake stage (but 14 the executables) 15 16 - The Warp module defines constants relative to the Warp stage (but 17 the executables) 18 19 - The Stack module defines constants relative to the Stack stage (but 20 the executables) 21 5 22 """
Note:
See TracChangeset
for help on using the changeset viewer.
