Changeset 10007 for trunk/Mars/datacenter/scripts/sourcefile
- Timestamp:
- 10/06/10 17:18:49 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.