Changeset 1207
- Timestamp:
- 06/05/15 18:04:20 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/libIGCM_debug/libIGCM_debug.ksh
r1206 r1207 661 661 code=0100 662 662 FlushAMQP=true 663 elif ( ${ExitFlag} ) ; then 664 # RabbitMQ message code "EXIT THE JOBS BECAUSE ERROR(S) HAS BEEN TRIGGERED" 665 code=9999 666 FlushAMQP=true 663 667 else 664 668 # RabbitMQ message code "COMPUTING JOB ENDS" … … 666 670 fi 667 671 elif [ X${TaskType} = Xpost-processing ]; then 668 # RabbitMQ message code "POST-PROCESSING JOB ENDS" 669 code=2100 670 FlushAMQP=true 672 if ( ${ExitFlag} ) ; then 673 # RabbitMQ message code "POST-PROCESSING JOB FAILS" 674 code=2900 675 FlushAMQP=true 676 else 677 # RabbitMQ message code "POST-PROCESSING JOB ENDS" 678 code=2100 679 FlushAMQP=true 680 fi 671 681 fi 672 682 # RabbitMQ message body … … 705 715 if ( ${ExitFlag} ) ; then 706 716 echo "IGCM_debug_Verif_Exit : Something wrong happened previously." 717 echo "IGCM_debug_Verif_Exit : ERROR and EXIT keyword will help find out where." 707 718 # Only computing TaskType stops the job for now. 708 719 if [ X${TaskType} = Xcomputing ] ; then 709 720 IGCM_card_WriteOption ${SUBMIT_DIR}/run.card Configuration PeriodState "Fatal" 710 echo "IGCM_debug_Verif_Exit : ERROR and EXIT keyword will help find out where."711 721 echo " EXIT THE JOB." 712 722 echo 713 723 IGCM_debug_CallStack 714 724 715 if [ X${ActivateBigBro} = Xtrue ] ; then716 # RabbitMQ message code "EXIT THE JOBS BECAUSE ERROR(S) HAS BEEN TRIGGERED"717 code=9999718 # RabbitMQ message body719 Body=$( echo "{${genericSimulationID},\"msgCode\":\"${code}\",\"msgUID\":\"$(uuidgen)\",\"msgTimestamp\":\"$( date +"%Y-%m-%dT%H:%M:%S.%N%z" )\"}" )720 # To be sure we flush message buffer and clean up behind us before the end of the simulation721 FlushAMQP=true722 # Fill the rabbitMQ queue723 IGCM_debug_sendAMQP724 fi725 726 725 # Mail notification 727 726 IGCM_sys_SendMail 727 728 # Inform the rabbitMQ queue 729 IGCM_debug_BigBro_Finalize 728 730 729 731 # And Good Bye … … 736 738 echo " EXIT THE JOB." 737 739 echo 740 IGCM_debug_CallStack 741 738 742 # Mail notification? 739 743 #IGCM_sys_SendMailPost 744 745 # Inform the rabbitMQ queue 746 IGCM_debug_BigBro_Finalize 747 740 748 # And Good Bye 741 749 date 742 750 exit 1 743 751 else 744 echo "Either inside config.card the variable SpaceName is not in PROD" 745 echo "or inside the main Job the variable JobType is not in RUN mode" 752 echo "In config.card the variable SpaceName is not in PROD" 746 753 echo " SO WE DO NOT EXIT THE JOB." 747 754 echo 755 756 # Inform the rabbitMQ queue 757 IGCM_debug_BigBro_Finalize 758 748 759 date 749 760 fi 750 761 elif [ X${TaskType} = Xchecking ] ; then 751 echo " Do nothing at the moment"762 echo "Nothing will happen for now" 752 763 fi 753 764 fi
Note: See TracChangeset
for help on using the changeset viewer.