Ignore:
Timestamp:
02/04/16 12:54:57 (8 years ago)
Author:
sdipsl
Message:
  • Add a postProcessingStopLevel mechanism. see #276
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/libIGCM_debug/libIGCM_debug.ksh

    r1280 r1282  
    773773 
    774774    elif [ X${TaskType} = Xpost-processing ] ; then 
    775       # If SpaceName is PROD then we stop when post_processing failed 
     775      # Test if we need to stop the computing job 
     776      case ${postProcessingName} in 
     777      atlas*|monitoring*|metrics*) 
     778        [ ${postProcessingStopLevel} -gt 2 ] && StopAll=true ;; 
     779      create_*) 
     780        [ ${postProcessingStopLevel} -gt 1 ] && StopAll=true ;; 
     781      rebuild*|pack_*) 
     782        [ ${postProcessingStopLevel} -gt 0 ] && StopAll=true ;; 
     783      esac 
     784      # Notify the computing job that something wrong happened and stop it. 
     785      ( ${StopALL} ) && IGCM_card_WriteOption ${SUBMIT_DIR}/run.card Configuration PeriodState "Fatal ${Script_Post_Output}" 
     786 
     787      # If SpaceName is PROD we stop when post_processing failed 
    776788      if [ X${config_UserChoices_SpaceName} = XPROD ] ; then 
    777789        echo "                        EXIT THE POST-PROCESSING JOB." 
    778790        echo 
    779791        IGCM_debug_CallStack 
    780  
    781         # Notify the computing job that something wrong happened. 
    782         IGCM_card_WriteOption ${SUBMIT_DIR}/run.card Configuration PeriodState "Fatal ${Script_Post_Output}" 
    783  
    784         # Mail notification? 
    785         #IGCM_sys_SendMailPost 
    786792 
    787793        # Inform the rabbitMQ queue 
Note: See TracChangeset for help on using the changeset viewer.