IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 25929 for trunk/ippTools/share


Ignore:
Timestamp:
Oct 22, 2009, 4:51:58 PM (17 years ago)
Author:
Paul Price
Message:

Giving publishClient an 'active' column, and add mode to pubtool to turn this on and off. Only interested in active clients. This is so that I can do a publishing run that only sends data to particular clients.

Location:
trunk/ippTools/share
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/share/pubtool_definerun.sql

    r24512 r25929  
    1111    JOIN diffRun
    1212    WHERE publishClient.stage = 'diff'
     13        AND publishClient.active = 1
    1314        AND diffRun.state = 'full'
    1415    -- WHERE hook %s
     
    2122    JOIN camRun
    2223    WHERE publishClient.stage = 'camera'
     24        AND publishClient.active = 1
    2325        AND camRun.state = 'full'
    2426    -- WHERE hook %s
  • trunk/ippTools/share/pubtool_pending.sql

    r24707 r25929  
    2424    JOIN rawExp USING(exp_id)
    2525    WHERE publishClient.stage = 'diff'
     26        AND publishClient.active = 1
    2627        AND publishRun.state = 'new'
    2728        AND diffRun.state = 'full'
     
    4344    JOIN rawExp USING(exp_id)
    4445    WHERE publishClient.stage = 'camera'
     46        AND publishClient.active = 1
    4547        AND publishRun.state ='new'
    4648        AND camRun.state = 'full'
  • trunk/ippTools/share/pubtool_revert.sql

    r24512 r25929  
    33WHERE publishDone.pub_id = publishRun.pub_id
    44    AND publishRun.client_id = publishClient.client_id
     5    AND publishClient.active = 1
    56    AND publishDone.fault != 0
  • trunk/ippTools/share/pxadmin_create_tables.sql

    r25913 r25929  
    14851485CREATE TABLE publishClient (
    14861486    client_id BIGINT AUTO_INCREMENT, -- unique identifier
     1487    active TINYINT DEFAULT 0,        -- whether we should worry about this or not
    14871488    product VARCHAR(64),             -- product name
    14881489    stage VARCHAR(64) NOT NULL, -- stage of interest (chip, camera, diff, etc.)
Note: See TracChangeset for help on using the changeset viewer.