IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 24831 for trunk/ippTasks


Ignore:
Timestamp:
Jul 16, 2009, 5:14:07 PM (17 years ago)
Author:
bills
Message:

updates to the postage stamp server to allow the postage stamp server's
database to be located on a different mysql server than the ipp.
Also some updates towards compatability with the current ipp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/pstamp.pro

    r23230 r24831  
    88$pstampJob_DB = 0
    99$pstampFin_DB = 0
     10
     11# 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
     14# example:
     15# $PSDBSERVER = -dbserver hostname
     16$PS_DBSERVER = ""
    1017
    1118macro pstamp.reset
     
    115122
    116123    task.exec
     124        $run = pstamptool -pendingreq
    117125        if ($DB:n == 0)
    118126            option DEFAULT
    119             command pstamptool  -pendingreq
    120127        else
    121128            option $DB:$pstampReq_DB
    122             command pstamptool  -pendingreq -dbname $DB:$pstampReq_DB
     129            $run = $run $PS_DBSERVER -dbname $DB:$pstampReq_DB
    123130            $pstampReq_DB ++
    124131            if ($pstampReq_DB >= $DB:n) set pstampReq_DB = 0
    125132        end
     133        add_poll_args run
     134        command $run
    126135    end
    127136
     
    213222        else
    214223            option $DB:$pstampFin_DB
    215             command pstamptool  -completedreq -dbname $DB:$pstampFin_DB
     224            command pstamptool  -completedreq -dbname $DB:$pstampFin_DB $PS_DBSERVER
    216225            $pstampFin_DB ++
    217226            if ($pstampFin_DB >= $DB:n) set pstampFin_DB = 0
     
    307316        else
    308317            option $DB:$pstampJob_DB
    309             command pstamptool -pendingjob -limit 10 -dbname $DB:$pstampJob_DB
     318            command pstamptool -pendingjob -limit 10 -dbname $DB:$pstampJob_DB $PS_DBSERVER
    310319            $pstampJob_DB ++
    311320            if ($pstampJob_DB >= $DB:n) set pstampJob_DB = 0
Note: See TracChangeset for help on using the changeset viewer.