- Timestamp:
- Dec 7, 2011, 11:00:18 AM (15 years ago)
- Location:
- trunk/ippdor/src/ipp
- Files:
-
- 2 edited
-
ChipManager.py (modified) (2 diffs)
-
constants/Chip.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdor/src/ipp/ChipManager.py
r32876 r32879 203 203 if len(chips) != 0: 204 204 # Send e-mail to recipient 205 body = ChipConstants. email_body_failed_revert.replace('@COUNT_FAILED_CHIPS@',205 body = ChipConstants.EMAIL_BODY_FAILED_REVERT.replace('@COUNT_FAILED_CHIPS@', 206 206 len(chips)) 207 207 body = body.replace('@LABEL@', self.label) … … 224 224 class_id) 225 225 body = body.replace('@CHIPTOOL_UPDATEPROCESSEDIMFILE@', updateprocessedimfile) 226 self.send_email( 'Chip stage failed for label %s / exposure %s)'% (self.label,227 self.exposure_name),226 self.send_email(ChipConstants.EMAIL_SUBJECT_FAILED_REVERT % (self.label, 227 self.exposure_name), 228 228 body % (GlobalConstants.LOCAL_TMP_DIR)) 229 229 print 'EMail sent to [%s]' % self.recipient -
trunk/ippdor/src/ipp/constants/Chip.py
r32876 r32879 3 3 framework are defined for the chip stage. 4 4 5 It defines the following data members: 6 TODO: list defined constants 5 It defines the following constants: 6 - REQUIREMENTS: The Condor requirements to run Chip jobs 7 - EMAIL_SUBJECT_FAILED_REVERT: The e-mail subject which is sent when 8 revert has failed 9 - EMAIL_BODY_FAILED_REVERT: The e-mail body which is sent when revert 10 has failed 11 - 7 12 """ 8 13 from ipp.exceptions.UninstantiableIppException import UninstantiableIppException … … 17 22 18 23 REQUIREMENTS = 'LoadAvg < 0.3' 19 email_subject = ''20 24 21 # This is the e-mail body which is sent when revert as 25 # This is the e-mail body which is sent when revert has failed. It 26 # is expected to valuate this expression with two parameters: 27 # - #1: The label (string) 28 # - #2: The exposure name (string) 29 EMAIL_SUBJECT_FAILED_REVERT = 'Chip stage failed for label %s / exposure %s)' 30 31 # This is the e-mail body which is sent when revert has 22 32 # failed. Some values need to be replaced, namely: 23 33 # - @COUNT_FAILED_CHIPS@: the number of chips which have failed; … … 32 42 # It is also expected to valuate this expression with one argument: 33 43 # - #1: The path to Globals.LOCAL_TMP_DIR 34 email_body_failed_revert= """Hi,44 EMAIL_BODY_FAILED_REVERT = """Hi, 35 45 36 46 this is an e-mail generated by the ippdor subsystem.
Note:
See TracChangeset
for help on using the changeset viewer.
