Ignore:
Timestamp:
08/23/06 20:34:15 (18 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/datacenter/scripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/datacenter/scripts/jobmanager

    r7920 r7924  
    3333user=`whoami`
    3434
    35 makedir $listpath
    36 makedir $lockpath
     35set -C
     36
     37makedir $listpath >> $jmscriptlog 2>&1
     38makedir $lockpath >> $jmscriptlog 2>&1
    3739
    3840notcount=0
     
    5557      queuedscript=`setzero $queuedscript`
    5658
    57       pnototal=${pnototal[$hour]}
     59      echo "date: "`date`" --- date +%k"`date +%k` >> $jmscriptlog 2>&1
     60      echo "--- hour: $hour --- pnototal(hour): ${pnototal[$hour]} --- totalpno: $totalpno ---" >> $jmscriptlog 2>&1
     61      totalpno=${pnototal[$hour]}
     62      echo "--- hour: $hour --- pnototal(hour): ${pnototal[$hour]} --- totalpno: $totalpno ---" >> $jmscriptlog 2>&1
     63      echo "date: "`date`" --- date +%k"`date +%k` >> $jmscriptlog 2>&1
     64     
    5865      #choose array according to the day of the week
    5966      case $dayofweek in
     
    6370      num=`echo "((( $i + 1 ) * 24 ) + ( $hour + 1 ) ) - 24 - 1 " | bc `
    6471      pnoscript=${pnos[$num]}
    65       echo " found $queued jobs in the queue (incl. running jobs) [allowed $pnototal]" >> $jmscriptlog 2>&1
     72      echo " found $queued jobs in the queue (incl. running jobs) [allowed $totalpno]" >> $jmscriptlog 2>&1
    6673      echo " found $queuedscript ${scripts[$i]} in the queue (incl. running jobs) [allowed $pnoscript]" >> $jmscriptlog 2>&1
    6774#      echo "  => num=$num => pnoscript=$pnoscript (i.e. $pnoscript ${scripts[$i]} allowed)" >> $jmscriptlog 2>&1
    6875     
    69       if [ "$queued" -gt "$pnototal" ]
     76      if [ "$queued" -gt "$totalpno" ]
    7077      then
    71          continue
     78         contex >> $jmscriptlog 2>&1
    7279      else
    7380         if [ "$queuedscript" -gt "$pnoscript" ]
    7481         then
    75             continue
     82            contex >> $jmscriptlog 2>&1
    7683         fi
    7784      fi
     
    8188      checklock  >> $jmscriptlog 2>&1
    8289      singleprocess="yes"
    83       gettodo
     90      gettodo  >> $jmscriptlog 2>&1
    8491      rm -v $lockfile >> $jmscriptlog 2>&1
    8592
     
    8996      makedir $condordir >> $jmscriptlog 2>&1
    9097     
    91       if ! /usr/local/bin/condor_submit -a path=$scriptspath -a prog=${scripts[$i]} -a date=$date2 -a dir=$condordir $scriptspath/run.condor 2>$jmerrorlog
     98      if ! /usr/local/bin/condor_submit -a path=$scriptspath -a prog=${scripts[$i]} -a date=$date2 -a dir=$condordir $scriptspath/run.condor 2>> $jmerrorlog
    9299      then
    93100         date >> $jmerrorlog
  • trunk/MagicSoft/Mars/datacenter/scripts/sourcefile

    r7917 r7924  
    314314   then
    315315      echo "ERROR could not query process from db -> contex"
     316      rm -v $lockfile
    316317      contex
    317318   fi
     
    320321   then
    321322      echo "  => nothing to do"
     323      rm -v $lockfile
    322324      contex
    323325   else
     
    335337      then
    336338         echo "$todofile exists already"
     339         rm -v $lockfile
    337340         contex
    338341      fi
Note: See TracChangeset for help on using the changeset viewer.