Changeset 18434


Ignore:
Timestamp:
02/13/16 17:46:02 (9 years ago)
Author:
Daniela Dorner
Message:
improved logging, additional check for DB (jobs that were reset while still runnning)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataCheck/Transfer/CheckTransfer.sh

    r18318 r18434  
    7474toquery="CONCAT(fNight, '_', fRunID, ':', fReturnCode) "
    7575toquery="IF (ISNULL(fReturnCode), CONCAT(fNight, '_', fRunID, 'crashed'), CONCAT(fNight, '_', fRunID, 'failed', fReturnCode)) "
    76 where="WHERE NOT ISNULL(fReturnCode) OR (NOT ISNULL(fStartTime) AND ISNULL(fStopTime)) AND fStartTime < DATE_ADD(Now(), INTERVAL -5 HOUR) "
     76where="WHERE NOT ISNULL(fReturnCode) OR (NOT ISNULL(fStartTime) AND ISNULL(fStopTime) AND fStartTime < DATE_ADD(Now(), INTERVAL -5 HOUR)) OR (ISNULL(fStartTime) AND NOT ISNULL(fStopTime)) "
    7777check_runs_in_db "RawFileRsyncedISDCStatus"
    7878check_runs_in_db "RawFileAvailWueStatus"
    7979# RawFileAvailISDC needs a different treatment
    8080#  as return code 0 means that file is in fails folder in archive
    81 where="WHERE fReturnCode>0 OR (NOT ISNULL(fStartTime) AND ISNULL(fStopTime)) AND fStartTime < DATE_ADD(Now(), INTERVAL -1 HOUR) "
     81where="WHERE fReturnCode>0 OR (NOT ISNULL(fStartTime) AND ISNULL(fStopTime) AND fStartTime < DATE_ADD(Now(), INTERVAL -1 HOUR)) OR (ISNULL(fStartTime) AND NOT ISNULL(fStopTime)) "
    8282check_runs_in_db "RawFileAvailISDCStatus"
    8383
     
    228228   #printprocesslog "  phido   "$numphido
    229229   printprocesslog "  data    "$numdatruns
     230   echo "" >> $logfile 2>&1
     231   echo "" >> $logfile 2>&1
     232   echo "" >> $logfile 2>&1
     233   echo `date`": checking the transfer..." >> $logfile 2>&1
     234   echo "" >> $logfile 2>&1
    230235   echo "disk: " >> $logfile 2>&1
    231236   echo "  newdaq  "${newdaq[@]} >> $logfile 2>&1
Note: See TracChangeset for help on using the changeset viewer.