Changeset 10007 for trunk/Mars/datacenter/scripts
- Timestamp:
- 10/06/10 17:18:49 (14 years ago)
- Location:
- trunk/Mars/datacenter/scripts
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/datacenter/scripts/setup.phido.fact.mc
r10004 r10007 36 36 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib 37 37 fi 38 39 # site 40 processingsite=phido 41 sitekey=2 42 storagesite=wue 38 43 39 44 # queuing system -
trunk/Mars/datacenter/scripts/setup.wue.fact.mc
r9618 r10007 36 36 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib 37 37 fi 38 39 # site 40 processingsite=wue 41 sitekey=1 42 storagesite=wue 38 43 39 44 # queuing system … … 83 88 sleeptimelimit=360 #360 84 89 errorsleeptimedefault=60 #60 85 max= 30 #maximum number of processes for one script in case there are more than one and the others do not have anything to do86 totalmax= 40#maximum number of processes (total) overwrites pnototal(we) in case it is smaller90 max=20 #maximum number of processes for one script in case there are more than one and the others do not have anything to do 91 totalmax=32 #maximum number of processes (total) overwrites pnototal(we) in case it is smaller 87 92 88 93 # … … 98 103 pnototalwe=( 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 ) 99 104 100 pnocorsika=( 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 )101 pnoceres=( 2 0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20)105 pnocorsika=( 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 ) 106 pnoceres=( 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 ) 102 107 pnocallisto=( 32 32 32 32 32 30 30 18 18 20 20 20 20 20 20 20 20 20 20 18 18 30 30 32 ) 103 pnostar=( 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 )108 pnostar=( 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ) 104 109 105 pnocorsikawe=( 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 )106 pnocereswe=( 2 0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20)110 pnocorsikawe=( 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 ) 111 pnocereswe=( 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 25 ) 107 112 pnocallistowe=( 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 ) 108 pnostarwe=( 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 )113 pnostarwe=( 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ) 109 114 110 115 # set variables for jobmanager 111 scripts=( "runcorsika" "runceres" "runcallisto_mc" "runstar_mc" )112 scriptscolname=( "Corsika" "Ceres" "Callisto" "Star" )113 pnosweek=( ${pnocorsika[@]} ${pnoceres[@]} ${pnocallisto[@]} ${pnostar[@]} )114 pnoswe=( ${pnocorsikawe[@]} ${pnocereswe[@]} ${pnocallistowe[@]} ${pnostarwe[@]} )116 #scripts=( "runcorsika" "runceres" "runcallisto_mc" "runstar_mc" ) 117 #scriptscolname=( "Corsika" "Ceres" "Callisto" "Star" ) 118 #pnosweek=( ${pnocorsika[@]} ${pnoceres[@]} ${pnocallisto[@]} ${pnostar[@]} ) 119 #pnoswe=( ${pnocorsikawe[@]} ${pnocereswe[@]} ${pnocallistowe[@]} ${pnostarwe[@]} ) 115 120 121 scripts=( "runceres" "runcallisto_mc" "runstar_mc" ) 122 scriptscolname=( "Ceres" "Callisto" "Star" ) 123 pnosweek=( ${pnoceres[@]} ${pnocallisto[@]} ${pnostar[@]} ) 124 pnoswe=( ${pnocereswe[@]} ${pnocallistowe[@]} ${pnostarwe[@]} ) 125 -
trunk/Mars/datacenter/scripts/sourcefile
r10004 r10007 169 169 echo " starttime=$starttime" 170 170 echo " stoptime=$stoptime" 171 echo " availtime=$availtime" 171 172 echo " returncode=$returncode" 172 173 echo "-- check: -$check-" … … 243 244 query=$query" ISNULL("$step"Status.fStartTime) " 244 245 query=$query" AND ISNULL("$step"Status.fStopTime) " 246 query=$query" AND ISNULL("$step"Status.fAvailable) " 245 247 query=$query" AND ISNULL("$step"Status.fReturnCode) " 246 248 # add requirement for production host in case it is needed … … 265 267 query=$query" NOT ISNULL("${needs[$k]}"Status.fStartTime) " 266 268 query=$query" AND NOT ISNULL("${needs[$k]}"Status.fStopTime) " 269 query=$query" AND NOT ISNULL("${needs[$k]}"Status.fAvailable) " 267 270 query=$query" AND ISNULL("${needs[$k]}"Status.fReturnCode) " 268 271 query=$query" , 1, NULL)) " … … 344 347 starttime=NULL 345 348 stoptime=NULL 349 availtime=NULL 346 350 returncode=NULL 347 351 # evaluate the status values … … 354 358 starttime=noreset 355 359 stoptime="Now()" 360 if [ "$processingsite" = "$storagesite" ] 361 then 362 availtime="Now()" 363 fi 356 364 ;; 357 365 no) printprocesslog "DEBUG setstatus stop - nothing new" … … 361 369 starttime=noreset 362 370 stoptime="Now()" 371 if [ "$processingsite" = "$storagesite" ] 372 then 373 availtime="Now()" 374 fi 363 375 if [ "$check" == "" ] 364 376 then … … 391 403 query=$query" "$step"Status.fStartTime=$starttime, " 392 404 fi 393 query=$query" "$step"Status.fStopTime=$stoptime, "$step"Status.fReturnCode=$returncode " 405 query=$query" "$step"Status.fStopTime=$stoptime, "$step"Status.fAvailable=$availtime" 406 query=$query", "$step"Status.fReturnCode=$returncode , "$step"Status.fProcessingSiteKEY=$sitekey " 394 407 # set also the status values of the influenced steps 395 408 for otherstep in $othersteps … … 397 410 query=$query", "$otherstep"Status.fStartTime=NULL " 398 411 query=$query", "$otherstep"Status.fStopTime=NULL " 412 query=$query", "$otherstep"Status.fAvailable=NULL " 399 413 query=$query", "$otherstep"Status.fReturnCode=NULL " 414 query=$query", "$otherstep"Status.fProcessingSiteKEY=NULL " 400 415 done 401 416 # give the condition for which step the status values have to be set
Note:
See TracChangeset
for help on using the changeset viewer.