Changeset 7914 for trunk


Ignore:
Timestamp:
08/22/06 16:50:52 (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

    r7912 r7914  
    5555       (relative path for Mars version)
    5656     - moved setup from jobsourcefile to sourcefile
     57     - added locking for gettodo
    5758
    5859   * datacenter/scripts/setup:
     
    9394     datacenter/scripts/writesequencefiles:
    9495     - improved logging and comments
     96
     97   * datacenter/scripts/scriptlauncher:
     98     - added (script to start submit other scripts to condor)
    9599
    96100
  • trunk/MagicSoft/Mars/datacenter/scripts/jobmanager

    r7913 r7914  
    3838   for (( i=0 ; i < ${#scripts[@]} ; i++ ))
    3939   do
    40       date  #>> $scriptlog 2>&1
    41       echo "sleeping $sleeptime..." #>> $scriptlog 2>&1
     40      date  >> $scriptlog 2>&1
     41      echo "sleeping $sleeptime..." >> $scriptlog 2>&1
    4242      sleep $sleeptime
    4343      dayofweek=`date +%u`
    4444      hour=`date +%k`
    4545      source `dirname $0`/sourcefile
    46       echo "script: ${scripts[$i]}" #>> $scriptlog 2>&1
    47 #      echo " day: $dayofweek hour: $hour" #>> $scriptlog 2>&1
     46      echo "script: ${scripts[$i]}" >> $scriptlog 2>&1
     47#      echo " day: $dayofweek hour: $hour" >> $scriptlog 2>&1
    4848      queued=`/usr/local/bin/condor_q -global -format "%s\n" Owner | grep -c $user`
    4949      queued=`setzero $queued`
     
    5959      num=`echo "((( $i + 1 ) * 24 ) + ( $hour + 1 ) ) - 24 - 1 " | bc `
    6060      pnoscript=${pnos[$num]}
    61       echo " found $queued jobs in the queue (incl. running jobs) [allowed $pnototal]" #>> $scriptlog 2>&1
    62       echo " found $queuedscript ${scripts[$i]} in the queue (incl. running jobs) [allowed $pnoscript]" #>> $scriptlog 2>&1
    63 #      echo "  => num=$num => pnoscript=$pnoscript (i.e. $pnoscript ${scripts[$i]} allowed)" #>> $scriptlog 2>&1
     61      echo " found $queued jobs in the queue (incl. running jobs) [allowed $pnototal]" >> $scriptlog 2>&1
     62      echo " found $queuedscript ${scripts[$i]} in the queue (incl. running jobs) [allowed $pnoscript]" >> $scriptlog 2>&1
     63#      echo "  => num=$num => pnoscript=$pnoscript (i.e. $pnoscript ${scripts[$i]} allowed)" >> $scriptlog 2>&1
    6464     
    6565      if [ "$queued" -gt "$pnototal" ]
     
    7373      fi
    7474
     75      # get todofile
     76      lockfile=$lockpath/lock-getting-${script[$i]}-list.txt
     77      checklock  >> $scriptlog 2>&1
    7578      singleprocess="yes"
    7679      gettodo
     80      rm -v $lockfile >> $scriptlog 2>&1
    7781
    7882      date=`date +%Y/%m/%d`
    7983      date2=`date +%Y-%m-%d`
    8084      condordir=$logpath/condor/$date
    81       makedir $condordir #>> $scriptlog 2>&1
     85      makedir $condordir >> $scriptlog 2>&1
    8286     
    8387      if ! /usr/local/bin/condor_submit -a path=$scriptspath -a prog=${scripts[$i]} -a date=$date2 -a dir=$condordir $scriptspath/run.condor 2>$errorlog
  • trunk/MagicSoft/Mars/datacenter/scripts/scriptlauncher

    r7913 r7914  
    3333scriptslog=$logpath/scriptlauncher/`date +%Y/%m`/jobmanager`date +%F`.log
    3434
    35 date  #>> $scriptlog 2>&1
     35date  >> $scriptlog 2>&1
    3636
    3737path=`dirname $0`
     
    4747      continue
    4848   fi
    49    echo "launching $i..." #>> $scriptlog 2>&1
     49   echo "launching $i..." >> $scriptlog 2>&1
    5050   /usr/local/bin/condor_submit -a path=$path -a prog=$i -a date=$date2 -a dir=$condordir $path/run.condor >/dev/null  2>$errorlog
    5151   if ! echo $@ | grep "allatthesametime" >/dev/null 2>$errorlog
    5252   then
    53       echo " waiting for $i to be done..." #>> $scriptlog 2>&1
     53      echo " waiting for $i to be done..." >> $scriptlog 2>&1
    5454      /usr/local/bin/condor_wait $condordir/condor-$date2.log >/dev/null 2>$errorlog
    5555   fi
Note: See TracChangeset for help on using the changeset viewer.