Ignore:
Timestamp:
08/25/06 13:40:49 (19 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r7933 r7936  
    3636
    3737echo "" >> $jmscriptlog 2>&1
    38 echo `date`": starting jobmanager" >> $jmscriptlog 2>&1
     38echo "starting jobmanager ("`date`")" >> $jmscriptlog 2>&1
    3939makedir $jmlogpath
    4040makedir $listpath >> $jmscriptlog 2>&1
    4141makedir $lockpath >> $jmscriptlog 2>&1
    4242
     43prev=$max
    4344notcount=0
    4445while (( $notcount < 100 ))
     
    7273      num=`echo "((( $i + 1 ) * 24 ) + ( $hour + 1 ) ) - 24 - 1 " | bc `
    7374      pnoscript=${pnos[$num]}
     75      if [ $prev -eq 0 ]
     76      then
     77         echo " prev=0 => resetting pnoscript [$pnoscript] to max [$max]" >> $jmscriptlog 2>&1
     78         pnoscript=$max
     79      fi
    7480      echo " found $queued jobs in the queue (incl. running jobs) [allowed $totalpno]" >> $jmscriptlog 2>&1
    75       echo " found $queuedscript ${scripts[$i]} in the queue (incl. running jobs) [allowed $pnoscript]" >> $jmscriptlog 2>&1
    76 #      echo "  => num=$num => pnoscript=$pnoscript (i.e. $pnoscript ${scripts[$i]} allowed)" >> $jmscriptlog 2>&1
     81      echo " found $queuedscript ${scripts[$i]} in the queue (incl. running jobs [$runningscript]) [allowed $pnoscript] - not running: $stillinqueue" >> $jmscriptlog 2>&1
    7782     
    7883      if [ "$queued" -gt "$totalpno" ]
     
    8792
    8893      # check if there's something to do
    89       getstatus
     94      getstatus >> $jmscriptlog 2>&1
     95      echo " $numproc ${scripts[$i]} still do to" >> $jmscriptlog 2>&1
    9096      if [ "$numproc" = "" ]
    9197      then
     98         prev=0
    9299         cont >> $jmscriptlog 2>&1
    93100      fi
    94       if ! [ $numproc -gt 0 ]
    95       then
    96          cont >> $jmscriptlog 2>&1
    97       fi
     101      prev=$max
    98102      if [ $numproc -lt $stillinqueue ]
    99103      then
    100          echo "numproc($numproc) -lt stillinqueue($stillinqueue)" >> $jmscriptlog 2>&1
     104         echo " numproc($numproc) -lt stillinqueue($stillinqueue)" >> $jmscriptlog 2>&1
    101105         cont >> $jmscriptlog 2>&1
    102106      fi
     
    107111      makedir $condordir >> $jmscriptlog 2>&1
    108112     
     113      echo " committing 1 ${scripts[$i]} to condor" >> $jmscriptlog 2>&1
    109114      if ! /usr/local/bin/condor_submit -a path=$scriptspath -a prog=${scripts[$i]} -a date=$date2 -a dir=$condordir $scriptspath/run.condor 2>> $jmerrorlog
    110115      then
     
    114119         sleep $errorsleeptime
    115120      fi
     121      date >> $jmscriptlog 2>&1
    116122      echo "" >> $jmscriptlog 2>&1
    117123   done
Note: See TracChangeset for help on using the changeset viewer.