Changeset 1282


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

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/AA_job

    r1247 r1282  
    113113#D- Increased verbosity (1, 2, 3) 
    114114Verbosity=3 
     115#D- postProcessingStopLevel (0,1,2,3) 
     116#D- 3 stop if any post-processing went wrong 
     117#D- 2 dont stop if atlas, monitoring or metrics failed 
     118#D- 1 dont stop if atlas, monitoring, metrics, create_ts or create_se failed 
     119#D- 0 dont stop if atlas, monitoring, metrics, create_ts, create_se, rebuild or pack_* failed 
     120postProcessingStopLevel=0 
    115121#D- Experience type : DEB(ug), DEV(elopment), RUN (default) 
     122#D- DEB : set -vx mode + output files are NOT read only 
     123#D- DEV : output files are NOT read only 
     124#D- RUN : output files ARE read only 
    116125JobType=RUN 
    117126#D- Number of execution in one job 
    118127PeriodNb=1 
    119 #-Q- sx9mercure PeriodNb=60 
    120128 
    121129#D- 
  • 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.