Changeset 7927 for trunk/MagicSoft/Mars/datacenter/scripts/jobmanager
- Timestamp:
- 08/24/06 12:15:46 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/jobmanager
r7924 r7927 18 18 # 19 19 # 20 # Author(s): Daniela Dorner 05/200 5<mailto:dorner@astro.uni-wuerzburg.de>20 # Author(s): Daniela Dorner 05/2006 <mailto:dorner@astro.uni-wuerzburg.de> 21 21 # 22 22 # Copyright: MAGIC Software Development, 2000-2006 … … 56 56 queuedscript=`/usr/local/bin/condor_q -global | grep $user | grep -c ${scripts[$i]}` 57 57 queuedscript=`setzero $queuedscript` 58 runningscript=`/usr/local/bin/condor_q -global | grep $user | grep ' R ' | grep -c ${scripts[$i]}` 59 runningscript=`setzero $runningscript` 60 stillinqueue=`echo $queuedscript - $runningscript | bc ` 58 61 59 echo "date: "`date`" --- date +%k"`date +%k` >> $jmscriptlog 2>&160 echo "--- hour: $hour --- pnototal(hour): ${pnototal[$hour]} --- totalpno: $totalpno ---" >> $jmscriptlog 2>&161 62 totalpno=${pnototal[$hour]} 62 echo "--- hour: $hour --- pnototal(hour): ${pnototal[$hour]} --- totalpno: $totalpno ---" >> $jmscriptlog 2>&163 echo "date: "`date`" --- date +%k"`date +%k` >> $jmscriptlog 2>&164 63 65 64 #choose array according to the day of the week … … 76 75 if [ "$queued" -gt "$totalpno" ] 77 76 then 78 cont ex>> $jmscriptlog 2>&177 cont >> $jmscriptlog 2>&1 79 78 else 80 79 if [ "$queuedscript" -gt "$pnoscript" ] 81 80 then 82 cont ex>> $jmscriptlog 2>&181 cont >> $jmscriptlog 2>&1 83 82 fi 84 83 fi 85 84 86 # get todofile 87 lockfile=$lockpath/lock-getting-${scripts[$i]}-list.txt 88 checklock >> $jmscriptlog 2>&1 89 singleprocess="yes" 90 gettodo >> $jmscriptlog 2>&1 91 rm -v $lockfile >> $jmscriptlog 2>&1 85 # check if there's something to do 86 getstatus 87 if [ "$numproc" = "" ] 88 then 89 cont >> $jmscriptlog 2>&1 90 fi 91 if ! [ $numproc -gt 0 ] 92 then 93 cont >> $jmscriptlog 2>&1 94 fi 95 if [ $numproc -lt $stillinqueue ] 96 then 97 echo "numproc($numproc) -lt stillinqueue($stillinqueue)" >> $jmscriptlog 2>&1 98 cont >> $jmscriptlog 2>&1 99 fi 92 100 93 101 date=`date +%Y/%m/%d`
Note:
See TracChangeset
for help on using the changeset viewer.