IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 15, 2009, 3:59:02 PM (17 years ago)
Author:
eugene
Message:

updates from trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20090715/ippTasks/pstamp.pro

    r25022 r25402  
    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
     
    178180        book getword pstampRequest $pageName ds_outProduct -var PRODUCT
    179181
     182        host anyhost
     183
    180184        $run = pstamp_parser_run.pl --req_id $REQ_ID --uri $URI --product $PRODUCT --redirect-output
    181185
     
    219223
    220224    task.exec
     225        $run = pstamptool  -completedreq
    221226        if ($DB:n == 0)
    222227            option DEFAULT
    223             command pstamptool  -completedreq
    224228        else
    225229            option $DB:$pstampFin_DB
    226             command pstamptool  -completedreq -dbname $DB:$pstampFin_DB $PS_DBSERVER
     230            $run = $run -dbname $DB:$pstampFin_DB $PS_DBSERVER
    227231            $pstampFin_DB ++
    228232            if ($pstampFin_DB >= $DB:n) set pstampFin_DB = 0
    229233        end
     234        add_poll_args run
     235        # add_poll_labels run
     236        command $run
    230237    end
    231238
     
    313320
    314321    task.exec
     322        $run = pstamptool -pendingjob
    315323        if ($DB:n == 0)
    316324            option DEFAULT
    317             command pstamptool -pendingjob -limit 10
    318325        else
    319326            option $DB:$pstampJob_DB
    320             command pstamptool -pendingjob -limit 10 -dbname $DB:$pstampJob_DB $PS_DBSERVER
     327            $run = $run -dbname $DB:$pstampJob_DB $PS_DBSERVER
    321328            $pstampJob_DB ++
    322329            if ($pstampJob_DB >= $DB:n) set pstampJob_DB = 0
    323330        end
     331        add_poll_args run
     332        # add_poll_labels run
     333        command $run
    324334    end
    325335
     
    356366    task.exec
    357367        book npages pstampJob -var N
    358         if ($N == 0) break
     368        if ($N == 0)
     369            periods -exec $RUNEXEC
     370            break
     371        end
     372        periods -exec 0.05
    359373       
    360374        book getpage pstampJob 0 -var pageName -key pantaskState INIT
     
    374388        end
    375389
     390        host anyhost
    376391
    377392        $run = pstamp_job_run.pl --job_id $JOB_ID --job_type $JOB_TYPE --rownum $ROWNUM --output_base $OUTPUT_BASE --redirect-output
Note: See TracChangeset for help on using the changeset viewer.