Ignore:
Timestamp:
10/06/10 17:18:49 (14 years ago)
Author:
Daniela Dorner
Message:
implemented fAvailable and fProcessingSiteKEY to allow for processing in
different sites
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/datacenter/scripts/sourcefile

    r10004 r10007  
    169169   echo " starttime=$starttime"
    170170   echo " stoptime=$stoptime"
     171   echo " availtime=$availtime"
    171172   echo " returncode=$returncode"
    172173   echo "-- check: -$check-"
     
    243244   query=$query" ISNULL("$step"Status.fStartTime) "
    244245   query=$query" AND ISNULL("$step"Status.fStopTime) "
     246   query=$query" AND ISNULL("$step"Status.fAvailable) "
    245247   query=$query" AND ISNULL("$step"Status.fReturnCode) "
    246248   # add requirement for production host in case it is needed
     
    265267      query=$query" NOT ISNULL("${needs[$k]}"Status.fStartTime) "
    266268      query=$query" AND NOT ISNULL("${needs[$k]}"Status.fStopTime) "
     269      query=$query" AND NOT ISNULL("${needs[$k]}"Status.fAvailable) "
    267270      query=$query" AND ISNULL("${needs[$k]}"Status.fReturnCode) "
    268271      query=$query" , 1, NULL)) "
     
    344347   starttime=NULL
    345348   stoptime=NULL
     349   availtime=NULL
    346350   returncode=NULL
    347351   # evaluate the status values
     
    354358                       starttime=noreset
    355359                       stoptime="Now()"
     360                       if [ "$processingsite" = "$storagesite" ]
     361                       then
     362                          availtime="Now()"
     363                       fi
    356364                       ;;
    357365                  no)  printprocesslog "DEBUG setstatus stop - nothing new"
     
    361369                       starttime=noreset
    362370                       stoptime="Now()"
     371                       if [ "$processingsite" = "$storagesite" ]
     372                       then
     373                          availtime="Now()"
     374                       fi
    363375                       if [ "$check" == "" ]
    364376                       then
     
    391403      query=$query" "$step"Status.fStartTime=$starttime, "
    392404   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 "
    394407   # set also the status values of the influenced steps
    395408   for otherstep in $othersteps
     
    397410      query=$query", "$otherstep"Status.fStartTime=NULL "
    398411      query=$query", "$otherstep"Status.fStopTime=NULL "
     412      query=$query", "$otherstep"Status.fAvailable=NULL "
    399413      query=$query", "$otherstep"Status.fReturnCode=NULL "
     414      query=$query", "$otherstep"Status.fProcessingSiteKEY=NULL "
    400415   done
    401416   # give the condition for which step the status values have to be set
Note: See TracChangeset for help on using the changeset viewer.