Ignore:
Timestamp:
09/04/14 11:15:45 (10 years ago)
Author:
sdipsl
Message:

timestamp precision is now millisecond. Add a uuid to each message. see #207 and #214

File:
1 edited

Legend:

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

    r1041 r1048  
    12411241      code=1100 
    12421242      # RabbitMQ message body 
    1243       Body=$( echo "{\"code\":\"${code}\",\"simuid\":\"${simuid}\",\"jobid\":\"${jobid}\",\"status\":\"OK\",\"timestamp\":\"$( date +"%Y-%m-%d-%T" )\"}" ) 
     1243      Body=$( echo "{\"code\":\"${code}\",\"uuid\":\"$(uuidgen)\",\"simuid\":\"${simuid}\",\"jobid\":\"${jobid}\",\"status\":\"OK\",\"timestamp\":\"$( date +"%Y-%m-%d-%T-%N" )\"}" ) 
    12441244      # Fill the rabbitMQ queue 
    12451245      IGCM_debug_sendAMQP 
     
    12641264        code=0100 
    12651265        # RabbitMQ message body 
    1266         Body=$( echo "{\"code\":\"${code}\",\"simuid\":\"${simuid}\",\"jobid\":\"${jobid}\",\"status\":\"OK\",\"timestamp\":\"$( date +"%Y-%m-%d-%T" )\"}" ) 
     1266        Body=$( echo "{\"code\":\"${code}\",\"uuid\":\"$(uuidgen)\",\"simuid\":\"${simuid}\",\"jobid\":\"${jobid}\",\"status\":\"OK\",\"timestamp\":\"$( date +"%Y-%m-%d-%T-%N" )\"}" ) 
    12671267        # Fill the rabbitMQ queue 
    12681268        IGCM_debug_sendAMQP 
Note: See TracChangeset for help on using the changeset viewer.