Ignore:
Timestamp:
09/09/16 17:17:40 (8 years ago)
Author:
sdipsl
Message:
  • send project accounting information only from the computing job to limit traffic volume
  • cosmetics
File:
1 edited

Legend:

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

    r1353 r1354  
    703703    ActivateBigBro=true 
    704704 
    705     # Save project accounting details in a file 
    706     accountingFile=cpt_${CENTER}_${PROJECT}_$( date +"%Y%m%d_%H%M" ).dat 
    707     IGCM_sys_projectAccounting ${accountingFile} 
    708  
    709     # And send it 
    710     IGCM_debug_sendAMQP_projectAccounting ${accountingFile} 
    711  
     705    if [ X${TaskType} = Xcomputing ]; then 
     706      # Save project accounting details in a file 
     707      accountingFile=cpt_${CENTER}_${PROJECT}_$( date +"%Y%m%d_%H%M" ).dat 
     708      IGCM_sys_projectAccounting ${accountingFile} 
     709 
     710      # And send it 
     711      IGCM_debug_sendAMQP_projectAccounting ${accountingFile} 
     712    fi 
    712713  fi 
    713714  IGCM_debug_PopStack "IGCM_debug_BigBro_Initialize" 
     
    728729 
    729730  if [ X${ActivateBigBro} = Xtrue ] ; then 
    730       if [ X${TaskType} = Xcomputing ]; then 
    731         # Send ${PeriodDateBegin}, ${PeriodDateEnd} and ${CumulPeriod} 
    732         # RabbitMQ message body 
    733         Body=$( echo "{${genericSimulationID},\"msgCode\":\"1001\",\"PeriodDateBegin\":\"${PeriodDateBegin}\",\"PeriodDateEnd\":\"${PeriodDateEnd}\",\"CumulPeriod\":\"${CumulPeriod}\",\"msgUID\":\"$(uuidgen)\",\"msgTimestamp\":\"$( date +"%Y-%m-%dT%H:%M:%S.%N%z" )\"}" ) 
    734         # Fill the rabbitMQ queue 
    735         IGCM_debug_sendAMQP 
    736       fi 
     731    if [ X${TaskType} = Xcomputing ]; then 
     732      # Send ${PeriodDateBegin}, ${PeriodDateEnd} and ${CumulPeriod} 
     733      # RabbitMQ message body 
     734      Body=$( echo "{${genericSimulationID},\"msgCode\":\"1001\",\"PeriodDateBegin\":\"${PeriodDateBegin}\",\"PeriodDateEnd\":\"${PeriodDateEnd}\",\"CumulPeriod\":\"${CumulPeriod}\",\"msgUID\":\"$(uuidgen)\",\"msgTimestamp\":\"$( date +"%Y-%m-%dT%H:%M:%S.%N%z" )\"}" ) 
     735      # Fill the rabbitMQ queue 
     736      IGCM_debug_sendAMQP 
     737    fi 
    737738  fi 
    738739  IGCM_debug_PopStack "IGCM_debug_BigBro_Update" 
Note: See TracChangeset for help on using the changeset viewer.