- Timestamp:
- 08/15/08 13:49:05 (16 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/jobmanager
r8527 r9122 68 68 69 69 # check if there's something to do 70 column=${scriptscolname[$i]} 70 71 getstatus >> $jmscriptlog 2>&1 71 72 echo " $numproc ${scripts[$i]} still do to" >> $jmscriptlog 2>&1 -
trunk/MagicSoft/Mars/datacenter/scripts/scriptlauncher
r8482 r9122 31 31 printprocesslog "INFO starting $0 $@" 32 32 33 makedir $listpath34 makedir $lockpath35 36 33 errorlog=$runlogpath/scriptlauncher-error`date +%F`.log 37 34 scriptlog=$runlogpath/scriptlauncher`date +%F`.log … … 42 39 date=`date +%Y-%m-%d` 43 40 44 scripts=( `echo $@ | sed -e 's/allatthesametime//'` ) 45 num=${#scripts[@]} 46 echo "$num scripts have to be launched" >> $scriptlog 2>&1 47 i=0 41 num=$# 42 echo "$num scripts have to be launched" #>> $scriptlog 2>&1 43 i=1 48 44 49 while [ $i -lt $num ] 45 if echo $@ | grep "allatthesametime" >/dev/null 2>$errorlog 46 then 47 all="yes" 48 else 49 all="no" 50 fi 51 52 while [ $i -le $num ] 50 53 do 51 echo " launching ${scripts[$i]}..." >> $scriptlog 2>&1 52 pid=`/usr/local/bin/condor_submit -a path=$path -a prog=${scripts[$i]} -a date=$date -a dir=$runlogpath $path/run.condor 2>> $errorlog | grep 'submitted to cluster' | cut -dr -f2` 54 com=( ) 55 prog= 56 if [ "$1" = "allatthesametime" ] 57 then 58 shift 59 i=`expr $i + 1` 60 continue 61 fi 62 com=( $1 ) 63 prog=${com[0]} 64 if ! ls $path/${com[0]} >/dev/null 2>&1 65 then 66 echo "script $path/$1 does not exist." >> $scriptlog 2>&1 67 shift 68 i=`expr $i + 1` 69 continue 70 fi 71 if [ `echo $1 | wc -w` -gt 1 ] 72 then 73 unset com[0] 74 args='-a args="'${com[@]}'"' 75 fi 76 echo " launching $1..." >> $scriptlog 2>&1 77 echo "/usr/local/bin/condor_submit -a path=$path -a prog=$prog $args -a date=$date -a dir=$runlogpath $path/run.condor 2>> $errorlog | grep 'submitted to cluster' | cut -dr -f2" >> $scriptlog 2>&1 78 pid=`/usr/local/bin/condor_submit -a path=$path -a prog=$prog $args -a date=$date -a dir=$runlogpath $path/run.condor 2>> $errorlog | grep 'submitted to cluster' | cut -dr -f2` 53 79 if [ "$pid" = "" ] 54 80 then 55 81 echo `date`" WARN condor is not working " >> $errorlog 2>&1 56 printprocesslog "WARN submitting ${scripts[$i]} to condor failed" 82 printprocesslog "WARN submitting $1 to condor failed" 83 shift 84 i=`expr $i + 1` 57 85 continue 58 86 fi 59 if ! echo $@ | grep "allatthesametime" >/dev/null 2>$errorlog87 if [ "$all" = "no" ] 60 88 then 61 echo " waiting for $ {scripts[$i]}to be done..." >> $scriptlog 2>&189 echo " waiting for $1 to be done..." >> $scriptlog 2>&1 62 90 /usr/local/bin/condor_wait $runlogpath/condor-$date.log $pid >/dev/null 2>$errorlog 63 91 fi 92 shift 64 93 i=`expr $i + 1` 65 94 done -
trunk/MagicSoft/Mars/datacenter/scripts/sourcefile
r9088 r9122 37 37 scriptspath=$mars/datacenter/scripts 38 38 39 webpath=/www/htdocs/datacenter40 41 39 datetime=`date +%F-%H-%M-%S` 42 40 … … 69 67 70 68 makedir $lockpath 71 makedir $listpath72 69 73 70 # set checkvalue to ok at the beginning of the scripts … … 107 104 #again run process status 108 105 FCompmux=26 106 Fdowebplots=27 109 107 110 108 # setup for jobmanager: … … 160 158 function checklock() 161 159 { 162 date > $lockfile 160 date > $lockfile 163 161 checklock0=$? 164 162 case $checklock0 in … … 309 307 numproc= 310 308 getdbsetup 311 column=${scriptscolname[$i]}312 309 getstepinfo 313 310 # get query … … 324 321 query=$query" group by $column " 325 322 # echo " QUERY: "$query 326 numproc=0327 323 if ! numproc=`mysql -s -u $us --password=$pw --host=vela $db -e " $query "` 328 324 then … … 336 332 function setstatus() 337 333 { 334 if [ "$column" = "no" ] 335 then 336 return 337 fi 338 338 resetstatusvalues 339 339 evalstatus $@ -
trunk/MagicSoft/Mars/resources/steps.rc
r9100 r9122 7 7 #-------------------------------------------------------------------- 8 8 9 10 9 #SequenceBuildStatus.fDate: 11 10 SequenceBuildStatus.fDate.Default: yes … … 14 13 SequenceBuildStatus.fDate.Reset: yes 15 14 16 17 15 #SequenceBuildStatus.fCCFilled: 18 16 SequenceBuildStatus.fCCFilled.Default: no … … 21 19 SequenceBuildStatus.fCCFilled.Reset: yes 22 20 23 24 21 #SequenceBuildStatus.fExclusionsDone: 25 22 SequenceBuildStatus.fExclusionsDone.Default: no … … 28 25 SequenceBuildStatus.fExclusionsDone.Reset: yes 29 26 30 31 27 #SequenceBuildStatus.fSequenceEntriesBuilt: 32 28 SequenceBuildStatus.fSequenceEntriesBuilt.Default: no … … 35 31 SequenceBuildStatus.fSequenceEntriesBuilt.Reset: yes 36 32 37 38 #-------------------------------------------------------------------- 39 33 #-------------------------------------------------------------------- 40 34 41 35 #RunProcessStatus.fRunNumber: … … 45 39 RunProcessStatus.fRunNumber.Reset: yes 46 40 47 48 41 #RunProcessStatus.fRawFileAvail: 49 42 RunProcessStatus.fRawFileAvail.Default: no … … 52 45 RunProcessStatus.fRawFileAvail.Reset: yes 53 46 54 55 47 #RunProcessStatus.fCCFileAvail: 56 48 RunProcessStatus.fCCFileAvail.Default: no … … 59 51 RunProcessStatus.fCCFileAvail.Reset: yes 60 52 61 62 53 #RunProcessStatus.fCaCoFileAvail: 63 54 RunProcessStatus.fCaCoFileAvail.Default: no … … 66 57 RunProcessStatus.fCaCoFileAvail.Reset: yes 67 58 68 69 59 #RunProcessStatus.fCaCoFileFound: 70 60 RunProcessStatus.fCaCoFileFound.Default: no … … 73 63 RunProcessStatus.fCaCoFileFound.Reset: yes 74 64 75 76 65 #RunProcessStatus.fDataCheckDone: 77 66 RunProcessStatus.fDataCheckDone.Default: no … … 80 69 RunProcessStatus.fDataCheckDone.Reset: yes 81 70 82 83 71 #RunProcessStatus.fTimingCorrection: 84 72 RunProcessStatus.fTimingCorrection.Default: check … … 87 75 RunProcessStatus.fTimingCorrection.Reset: yes 88 76 89 90 77 #RunProcessStatus.fCompmux: 91 78 RunProcessStatus.fCompmux.Default: check … … 94 81 RunProcessStatus.fCompmux.Reset: yes 95 82 96 97 #RunProcessStatus.fMerpp: 98 RunProcessStatus.fMerpp.Default: no 99 RunProcessStatus.fMerpp.Needs: RunProcessStatus.fRawFileAvail RunProcessStatus.fTimingCorrection 100 RunProcessStatus.fMerpp.Influences: RunProcessStatus.fMerppCCUpdate RunProcessStatus.fMerppCaCoUpdate 101 RunProcessStatus.fMerpp.Reset: yes 102 103 104 #RunProcessStatus.fMerppCCUpdate: 105 RunProcessStatus.fMerppCCUpdate.Default: no 106 RunProcessStatus.fMerppCCUpdate.Needs: RunProcessStatus.fRawFileAvail RunProcessStatus.fMerpp RunProcessStatus.fTimingCorrection RunProcessStatus.fCCFileAvail 107 RunProcessStatus.fMerppCCUpdate.Influences: RunProcessStatus.fMerppCaCoUpdate 108 RunProcessStatus.fMerppCCUpdate.Reset: no 109 110 111 #RunProcessStatus.fMerppCaCoUpdate: 112 RunProcessStatus.fMerppCaCoUpdate.Default: no 113 RunProcessStatus.fMerppCaCoUpdate.Needs: RunProcessStatus.fRawFileAvail RunProcessStatus.fMerpp RunProcessStatus.fTimingCorrection RunProcessStatus.fCCFileAvail RunProcessStatus.fMerppCCUpdate RunProcessStatus.fCaCoFileFound 114 #RunProcessStatus.fMerppCaCoUpdate.Influences: - 115 RunProcessStatus.fMerppCaCoUpdate.Reset: no 116 117 118 #-------------------------------------------------------------------- 119 83 #-------------------------------------------------------------------- 120 84 121 85 #SequenceProcessStatus.fSequenceFirst: … … 125 89 SequenceProcessStatus.fSequenceFirst.Reset: yes 126 90 127 128 91 #SequenceProcessStatus.fSequenceFileWritten: 129 92 SequenceProcessStatus.fSequenceFileWritten.Default: check 130 93 SequenceProcessStatus.fSequenceFileWritten.Needs: SequenceProcessStatus.fSequenceFirst 131 SequenceProcessStatus.fSequenceFileWritten.Influences: SequenceProcessStatus.f Callisto SequenceProcessStatus.fFillCallisto SequenceProcessStatus.fStar SequenceProcessStatus.fFillStar94 SequenceProcessStatus.fSequenceFileWritten.Influences: SequenceProcessStatus.fAllFilesAvail SequenceProcessStatus.fCallisto SequenceProcessStatus.fFillCallisto SequenceProcessStatus.fStar SequenceProcessStatus.fFillStar SequenceProcessStatus.fWebCalib SequenceProcessStatus.fWebSignal SequenceProcessStatus.fWebStar 132 95 SequenceProcessStatus.fSequenceFileWritten.Reset: yes 133 134 96 135 97 #SequenceProcessStatus.fAllFilesAvail: 136 98 SequenceProcessStatus.fAllFilesAvail.Default: no 137 99 SequenceProcessStatus.fAllFilesAvail.Needs: SequenceProcessStatus.fSequenceFileWritten 138 SequenceProcessStatus.fAllFilesAvail.Influences: SequenceProcessStatus.fCallisto SequenceProcessStatus.fFillCallisto SequenceProcessStatus.fStar SequenceProcessStatus.fFillStar 100 SequenceProcessStatus.fAllFilesAvail.Influences: SequenceProcessStatus.fCallisto SequenceProcessStatus.fFillCallisto SequenceProcessStatus.fStar SequenceProcessStatus.fFillStar SequenceProcessStatus.fWebCalib SequenceProcessStatus.fWebSignal SequenceProcessStatus.fWebStar 139 101 SequenceProcessStatus.fAllFilesAvail.Reset: yes 140 141 102 142 103 #SequenceProcessStatus.fCallisto: 143 104 SequenceProcessStatus.fCallisto.Default: no 144 105 SequenceProcessStatus.fCallisto.Needs: SequenceProcessStatus.fSequenceFileWritten SequenceProcessStatus.fAllFilesAvail SequenceProcessStatus.fNotZipping 145 SequenceProcessStatus.fCallisto.Influences: SequenceProcessStatus.fFillCallisto SequenceProcessStatus.fStar SequenceProcessStatus.fFillStar 106 SequenceProcessStatus.fCallisto.Influences: SequenceProcessStatus.fFillCallisto SequenceProcessStatus.fStar SequenceProcessStatus.fFillStar SequenceProcessStatus.fWebCalib SequenceProcessStatus.fWebSignal SequenceProcessStatus.fWebStar 146 107 SequenceProcessStatus.fCallisto.Reset: yes 147 148 108 149 109 #SequenceProcessStatus.fFillCallisto: … … 153 113 SequenceProcessStatus.fFillCallisto.Reset: yes 154 114 115 #SequenceProcessStatus.fWebCalib: 116 SequenceProcessStatus.fWebCalib.Default: no 117 SequenceProcessStatus.fWebCalib.Needs: SequenceProcessStatus.fSequenceFileWritten SequenceProcessStatus.fAllFilesAvail SequenceProcessStatus.fCallisto 118 #SequenceProcessStatus.fWebCalib.Influences: - 119 SequenceProcessStatus.fWebCalib.Reset: yes 120 121 #SequenceProcessStatus.fWebSignal: 122 SequenceProcessStatus.fWebSignal.Default: no 123 SequenceProcessStatus.fWebSignal.Needs: SequenceProcessStatus.fSequenceFileWritten SequenceProcessStatus.fAllFilesAvail SequenceProcessStatus.fCallisto 124 #SequenceProcessStatus.fWebSignal.Influences: - 125 SequenceProcessStatus.fWebSignal.Reset: yes 155 126 156 127 #SequenceProcessStatus.fStar: 157 128 SequenceProcessStatus.fStar.Default: no 158 129 SequenceProcessStatus.fStar.Needs: SequenceProcessStatus.fSequenceFileWritten SequenceProcessStatus.fAllFilesAvail SequenceProcessStatus.fCallisto 159 SequenceProcessStatus.fStar.Influences: SequenceProcessStatus.fFillStar 130 SequenceProcessStatus.fStar.Influences: SequenceProcessStatus.fFillStar SequenceProcessStatus.fWebStar 160 131 SequenceProcessStatus.fStar.Reset: yes 161 162 132 163 133 #SequenceProcessStatus.fFillStar: … … 167 137 SequenceProcessStatus.fFillStar.Reset: yes 168 138 169 170 #-------------------------------------------------------------------- 171 139 #SequenceProcessStatus.fWebStar: 140 SequenceProcessStatus.fWebStar.Default: no 141 SequenceProcessStatus.fWebStar.Needs: SequenceProcessStatus.fSequenceFileWritten SequenceProcessStatus.fAllFilesAvail SequenceProcessStatus.fCallisto SequenceProcessStatus.fStar 142 #SequenceProcessStatus.fWebStar.Influences: - 143 SequenceProcessStatus.fWebStar.Reset: yes 144 145 #-------------------------------------------------------------------- 172 146 173 147 #DataSetProcessStatus.fDataSetNumber: 174 148 DataSetProcessStatus.fDataSetNumber.Default: yes 175 149 #DataSetProcessStatus.fDataSetNumber.Needs: - 176 DataSetProcessStatus.fDataSetNumber.Influences: DataSetProcessStatus.fDataSetInserted DataSetProcessStatus.fDataSetFileWritten DataSetProcessStatus.fStarFilesAvail DataSetProcessStatus.fGanymed DataSetProcessStatus.fFillGanymed150 DataSetProcessStatus.fDataSetNumber.Influences: DataSetProcessStatus.fDataSetInserted DataSetProcessStatus.fDataSetFileWritten DataSetProcessStatus.fStarFilesAvail DataSetProcessStatus.fGanymed DataSetProcessStatus.fFillGanymed DataSetProcessStatus.fWebGanymed DataSetProcessStatus.fWebPlotDBGanymed 177 151 DataSetProcessStatus.fDataSetNumber.Reset: yes 178 179 152 180 153 #DataSetProcessStatus.fDataSetInserted: 181 154 DataSetProcessStatus.fDataSetInserted.Default: no 182 155 DataSetProcessStatus.fDataSetInserted.Needs: DataSetProcessStatus.fDataSetNumber 183 DataSetProcessStatus.fDataSetInserted.Influences: DataSetProcessStatus.fDataSetFileWritten DataSetProcessStatus.fStarFilesAvail DataSetProcessStatus.fGanymed DataSetProcessStatus.fFillGanymed DataSetProcessStatus.fFillGanymed 156 DataSetProcessStatus.fDataSetInserted.Influences: DataSetProcessStatus.fDataSetFileWritten DataSetProcessStatus.fStarFilesAvail DataSetProcessStatus.fGanymed DataSetProcessStatus.fFillGanymed DataSetProcessStatus.fFillGanymed DataSetProcessStatus.fWebGanymed DataSetProcessStatus.fWebPlotDBGanymed 184 157 DataSetProcessStatus.fDataSetInserted.Reset: yes 185 186 158 187 159 #DataSetProcessStatus.fDataSetFileWritten: 188 160 DataSetProcessStatus.fDataSetFileWritten.Default: no 189 161 DataSetProcessStatus.fDataSetFileWritten.Needs: DataSetProcessStatus.fDataSetNumber DataSetProcessStatus.fDataSetInserted 190 DataSetProcessStatus.fDataSetFileWritten.Influences: DataSetProcessStatus.fStarFilesAvail DataSetProcessStatus.fGanymed DataSetProcessStatus.fFillGanymed162 DataSetProcessStatus.fDataSetFileWritten.Influences: DataSetProcessStatus.fStarFilesAvail DataSetProcessStatus.fGanymed DataSetProcessStatus.fFillGanymed DataSetProcessStatus.fWebGanymed DataSetProcessStatus.fWebPlotDBGanymed 191 163 DataSetProcessStatus.fDataSetFileWritten.Reset: yes 192 193 164 194 165 #DataSetProcessStatus.fStarFilesAvail: 195 166 DataSetProcessStatus.fStarFilesAvail.Default: no 196 167 DataSetProcessStatus.fStarFilesAvail.Needs: DataSetProcessStatus.fDataSetInserted DataSetProcessStatus.fDataSetFileWritten 197 DataSetProcessStatus.fStarFilesAvail.Influences: DataSetProcessStatus.fGanymed DataSetProcessStatus.fFillGanymed168 DataSetProcessStatus.fStarFilesAvail.Influences: DataSetProcessStatus.fGanymed DataSetProcessStatus.fFillGanymed DataSetProcessStatus.fWebGanymed DataSetProcessStatus.fWebPlotDBGanymed 198 169 DataSetProcessStatus.fStarFilesAvail.Reset: yes 199 200 170 201 171 #DataSetProcessStatus.fGanymed: 202 172 DataSetProcessStatus.fGanymed.Default: no 203 173 DataSetProcessStatus.fGanymed.Needs: DataSetProcessStatus.fDataSetInserted DataSetProcessStatus.fDataSetFileWritten DataSetProcessStatus.fStarFilesAvail 204 DataSetProcessStatus.fGanymed.Influences: DataSetProcessStatus.fFillGanymed 174 DataSetProcessStatus.fGanymed.Influences: DataSetProcessStatus.fFillGanymed DataSetProcessStatus.fWebGanymed DataSetProcessStatus.fWebPlotDBGanymed 205 175 DataSetProcessStatus.fGanymed.Reset: yes 206 207 176 208 177 #DataSetProcessStatus.fFillGanymed: … … 212 181 DataSetProcessStatus.fFillGanymed.Reset: yes 213 182 214 215 #-------------------------------------------------------------------- 216 183 #DataSetProcessStatus.fWebGanymed: 184 DataSetProcessStatus.fWebGanymed.Default: no 185 DataSetProcessStatus.fWebGanymed.Needs: DataSetProcessStatus.fDataSetInserted DataSetProcessStatus.fDataSetFileWritten DataSetProcessStatus.fStarFilesAvail DataSetProcessStatus.fGanymed 186 #DataSetProcessStatus.fWebGanymed.Influences: 187 DataSetProcessStatus.fWebGanymed.Reset: yes 188 189 #DataSetProcessStatus.fWebPlotDBGanymed: 190 DataSetProcessStatus.fWebPlotDBGanymed.Default: no 191 DataSetProcessStatus.fWebPlotDBGanymed.Needs: DataSetProcessStatus.fDataSetInserted DataSetProcessStatus.fDataSetFileWritten DataSetProcessStatus.fStarFilesAvail DataSetProcessStatus.fGanymed 192 #DataSetProcessStatus.fWebPlotDBGanymed.Influences: 193 DataSetProcessStatus.fWebPlotDBGanymed.Reset: yes 194 195 #-------------------------------------------------------------------- 217 196 218 197 #MCRunProcessStatus.fMCRunNumber: … … 222 201 MCRunProcessStatus.fMCRunNumber.Reset: yes 223 202 224 225 203 #MCRunProcessStatus.fCameraInputCreated: 226 204 MCRunProcessStatus.fCameraInputCreated.Default: no … … 229 207 MCRunProcessStatus.fCameraInputCreated.Reset: yes 230 208 231 232 209 #MCRunProcessStatus.fReflectorInputCreated: 233 210 MCRunProcessStatus.fReflectorInputCreated.Default: no … … 236 213 MCRunProcessStatus.fReflectorInputCreated.Reset: yes 237 214 238 239 215 #MCRunProcessStatus.fCorsikaInputCreated: 240 216 MCRunProcessStatus.fCorsikaInputCreated.Default: no … … 243 219 MCRunProcessStatus.fCorsikaInputCreated.Reset: yes 244 220 245 246 221 #MCRunProcessStatus.fCorsikaFileAvail: 247 222 MCRunProcessStatus.fCorsikaFileAvail.Default: no … … 250 225 MCRunProcessStatus.fCorsikaFileAvail.Reset: yes 251 226 252 253 227 #MCRunProcessStatus.fReflectorFileAvail: 254 228 MCRunProcessStatus.fReflectorFileAvail.Default: no … … 257 231 MCRunProcessStatus.fReflectorFileAvail.Reset: yes 258 232 259 260 233 #MCRunProcessStatus.fCameraFileAvail: 261 234 MCRunProcessStatus.fCameraFileAvail.Default: no … … 264 237 MCRunProcessStatus.fCameraFileAvail.Reset: yes 265 238 266
Note:
See TracChangeset
for help on using the changeset viewer.