Changeset 8160 for trunk/MagicSoft/Mars
- Timestamp:
- 10/25/06 12:47:57 (18 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r8159 r8160 18 18 19 19 -*-*- END OF LINE -*-*- 20 2006/10/25 Daniela Dorner 21 22 * datacenter/scripts/jobmanager, datacenter/scripts/setup: 23 - added longer sleeping, when there is nothing to do for any script 24 25 26 20 27 2006/10/24 Thomas Bretz 21 28 -
trunk/MagicSoft/Mars/datacenter/scripts/jobmanager
r8118 r8160 41 41 # endless loop 42 42 notcount=0 43 nothingtodocount=0 44 nothingtodosleeptime=0 43 45 while (( $notcount < 100 )) 44 46 do … … 55 57 then 56 58 prev=0 57 cont >> $jmscriptlog 2>&1 59 nothingtodocount=`expr $nothingtodocount + 1` 60 if [ $nothingtodocount -lt ${#scripts[@]} ] 61 then 62 cont >> $jmscriptlog 2>&1 63 else 64 if [ $nothingtodosleeptime -lt $sleeptimelimit ] 65 then 66 nothingtodosleeptime=`echo " $nothingtodocount * $sleeptime " | bc` 67 fi 68 echo "sleeping $nothingtodosleeptime" >> $jmscriptlog 2>&1 69 sleep $nothingtodosleeptime 70 cont >> $jmscriptlog 2>&1 71 fi 72 else 73 nothingtodocount=0 58 74 fi 59 75 -
trunk/MagicSoft/Mars/datacenter/scripts/setup
r8118 r8160 62 62 #setup for jobmanager 63 63 sleeptime=30 #30 64 sleeptimelimit=360 #360 64 65 errorsleeptime=60 #60 65 66 max=18 #maximum number of processes
Note:
See TracChangeset
for help on using the changeset viewer.