Changeset 1332


Ignore:
Timestamp:
07/04/16 17:01:31 (8 years ago)
Author:
sdipsl
Message:
Location:
trunk/libIGCM
Files:
2 edited

Legend:

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

    r1280 r1332  
    872872    yyyymm_p1=${year}${month_p1} 
    873873  fi 
    874   #IGCM_debug_Print 1 "jg 1 month_m1 = ${month_m1} month_p1 = ${month_p1} " 
    875   #IGCM_debug_Print 1 "jg 1 calculate yyyymm_m1 = ${yyyymm_m1} " 
    876   #IGCM_debug_Print 1 "jg 1 calculate yyyymm_p1 = ${yyyymm_p1} " 
    877874 
    878875  #===================================================================# 
     
    978975 
    979976  ExecutionFail=false 
     977 
     978  # Update the rabbitMQ queue 
     979  IGCM_debug_BigBro_Update 
    980980 
    981981  IGCM_debug_PopStack "IGCM_config_PeriodStart" 
  • trunk/libIGCM/libIGCM_debug/libIGCM_debug.ksh

    r1325 r1332  
    711711  fi 
    712712  IGCM_debug_PopStack "IGCM_debug_BigBro_Initialize" 
     713} 
     714 
     715#D-#================================================================== 
     716#D-function IGCM_debug_BigBro_Update 
     717#D-* Purpose: Update rabbitMQ messages exchanges during the run 
     718#D- 
     719function IGCM_debug_BigBro_Update { 
     720  IGCM_debug_PushStack "IGCM_debug_BigBro_Update" 
     721 
     722  # Message type standard fields: 
     723  # https://github.com/Prodiguer/prodiguer-docs/wiki/MQ-Standard-Message-Fields 
     724 
     725  # Message type dictionnary and custom fields: 
     726  # https://github.com/Prodiguer/prodiguer-docs/wiki/Monitoring-Message-Dictionary 
     727 
     728  if [ X${ActivateBigBro} = Xtrue ] ; then 
     729      if [ X${TaskType} = Xcomputing ]; then 
     730        # Send ${PeriodDateBegin}, ${PeriodDateEnd} and ${CumulPeriod} 
     731        # RabbitMQ message body 
     732        Body=$( echo "{${genericSimulationID},\"msgCode\":\"1001\",\"PeriodDateBegin\":\"${PeriodDateBegin}\",\"PeriodDateEnd\":\"${PeriodDateEnd}\",\"CumulPeriod\":\"${cumulPeriod}\",\"msgUID\":\"$(uuidgen)\",\"msgTimestamp\":\"$( date +"%Y-%m-%dT%H:%M:%S.%N%z" )\"}" ) 
     733        # Fill the rabbitMQ queue 
     734        IGCM_debug_sendAMQP 
     735      fi 
     736  fi 
     737  IGCM_debug_PopStack "IGCM_debug_BigBro_Update" 
    713738} 
    714739 
Note: See TracChangeset for help on using the changeset viewer.