IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 25282


Ignore:
Timestamp:
Sep 8, 2009, 12:56:18 PM (17 years ago)
Author:
bills
Message:

if there are jobs to run, speed up the exec time. use add_poll_args
for query tasks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/pstamp.pro

    r25059 r25282  
    1010
    1111# set PS_DBSERVER if postage stamp database host is not the same as the value for DBSERVER in site.config
    12 # warning: no quotes around the two words. it cause it to get passed to pstamptool as one word
    13 # tricky to debug problem ensues
     12# warning: no quotes around the two words. That causes the variable to get passed to pstamptool as one word
     13# and a tricky to debug problem ensues
    1414# example:
    15 # $PSDBSERVER = -dbserver hostname
    16 if ($?PSDBSERVER == 0)
     15# $PS_DBSERVER = -dbserver hostname
     16
     17if ($?PS_DBSERVER == 0)
    1718    $PS_DBSERVER = ""
    1819end
     
    134135        end
    135136        add_poll_args run
     137        # add_poll_labels run
    136138        command $run
    137139    end
     
    221223
    222224    task.exec
     225        $run = pstamptool  -completedreq
    223226        if ($DB:n == 0)
    224227            option DEFAULT
    225             command pstamptool  -completedreq
    226228        else
    227229            option $DB:$pstampFin_DB
    228             command pstamptool  -completedreq -dbname $DB:$pstampFin_DB $PS_DBSERVER
     230            $run = $run -dbname $DB:$pstampFin_DB $PS_DBSERVER
    229231            $pstampFin_DB ++
    230232            if ($pstampFin_DB >= $DB:n) set pstampFin_DB = 0
    231233        end
     234        add_poll_args run
     235        # add_poll_labels run
     236        command $run
    232237    end
    233238
     
    315320
    316321    task.exec
     322        $run = pstamptool -pendingjob
    317323        if ($DB:n == 0)
    318324            option DEFAULT
    319             command pstamptool -pendingjob -limit 10
    320325        else
    321326            option $DB:$pstampJob_DB
    322             command pstamptool -pendingjob -limit 10 -dbname $DB:$pstampJob_DB $PS_DBSERVER
     327            $run = $run -dbname $DB:$pstampJob_DB $PS_DBSERVER
    323328            $pstampJob_DB ++
    324329            if ($pstampJob_DB >= $DB:n) set pstampJob_DB = 0
    325330        end
     331        add_poll_args run
     332        # add_poll_labels run
     333        command $run
    326334    end
    327335
     
    358366    task.exec
    359367        book npages pstampJob -var N
    360         if ($N == 0) break
     368        if ($N == 0)
     369            periods -exec $RUNEXEC
     370            break
     371        end
     372        periods -exec 0.05
    361373       
    362374        book getpage pstampJob 0 -var pageName -key pantaskState INIT
Note: See TracChangeset for help on using the changeset viewer.