Changeset 8461 for trunk


Ignore:
Timestamp:
04/27/07 17:35:24 (18 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r8458 r8461  
    1919                                                 -*-*- END OF LINE -*-*-
    2020
     21 2007/04/27 Daniela Dorner
     22
     23   * datacenter/scripts/jobmanager:
     24     - improved logging
     25
     26   * datacenter/scripts/scriptlauncher:
     27     - redirect of error messages of condor_submit to errorlogfile
     28     - in case condor_submit does not work (i.e. pid empty) an error
     29       message is written to the processlogfile
     30
     31
     32
    2133 2007/04/27
    2234
  • trunk/MagicSoft/Mars/datacenter/scripts/jobmanager

    r8177 r8461  
    8282      if echo $q | egrep \(Error\|failed\)
    8383      then
    84          echo "WARN condor_q failed" >> $jmscriptlog 2>&1
     84         echo `date`" WARN condor_q failed" >> $jmscriptlog 2>&1
    8585         printprocesslog "WARN condor_q failed"
    86          echo `date`"ERROR condor_q failed" >> $jmerrorlog
     86         echo `date`" WARN condor_q failed" >> $jmerrorlog
    8787         cont >> $jmscriptlog 2>&1
    8888      fi
     
    139139      if ! /usr/local/bin/condor_submit -a path=$scriptspath -a prog=${scripts[$i]} -a date=$date -a dir=$runlogpath $scriptspath/run.condor 2>> $jmerrorlog
    140140      then
    141          echo `date`"ERROR condor_submit failed" >> $jmerrorlog
     141         echo `date`" WARN condor_submit failed" >> $jmerrorlog
    142142         echo "condor is not working -> sleeping $errorsleeptime" >> $jmscriptlog 2>&1
    143143         printprocesslog "WARN submitting ${scripts[$i]} to condor failed"
  • trunk/MagicSoft/Mars/datacenter/scripts/scriptlauncher

    r7946 r8461  
    4949   fi
    5050   echo " launching $i..." >> $scriptlog 2>&1
    51    if ! pid=`/usr/local/bin/condor_submit -a path=$path -a prog=$i -a date=$date -a dir=$runlogpath $path/run.condor | grep cluster | cut -dr -f2`  2>$errorlog
     51   pid=`/usr/local/bin/condor_submit -a path=$path -a prog=$i -a date=$date -a dir=$runlogpath $path/run.condor >> $errorlog | grep 'submitted to cluster' | cut -dr -f2`
     52   if [ "$pid" = "" ]
    5253   then
    53       echo "condor is not working " >> $errorlog 2>&1
    54       printprocesslog "ERROR submitting $i to condor failed"
     54      echo `date`" WARN condor is not working " >> $errorlog 2>&1
     55      printprocesslog "WARN submitting $i to condor failed"
    5556   fi
    5657   if ! echo $@ | grep "allatthesametime" >/dev/null 2>$errorlog
Note: See TracChangeset for help on using the changeset viewer.