IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 1, 2009, 3:22:25 PM (17 years ago)
Author:
bills
Message:

various changes to disttool

File:
1 edited

Legend:

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

    r23566 r23661  
    1616FROM distRun
    1717JOIN rawExp ON exp_id = stage_id
    18 JOIN (                      -- find the last magicked chip run
     18JOIN (                      -- find the last satisfactory chip run
     19                            -- note this requires that a chip run have been completed even when
     20                            -- magic is not required for the run
    1921    SELECT
    2022        exp_id,
    2123        MAX(chip_id) AS chip_id
    2224    FROM chipRun
     25    JOIN distRun ON stage_id = exp_id AND stage = 'raw'
    2326    WHERE
    2427        chipRun.state = 'full'
    2528        AND chipRun.exp_id = exp_id
    26         --   AND chipRun.magicked
    27         -- magicked hook 1 %s
     29        AND (chipRun.magicked OR distRun.no_magic)
    2830        GROUP BY exp_id
    2931    ) AS bestChipRun
     
    3941    AND distRun.stage = 'raw'
    4042    AND distComponent.dist_id IS NULL
    41     -- if magicked add AND rawImfile.magicked here
     43    AND (rawExp.magicked OR distRun.no_magic)
    4244    -- where hook 1 %s
    4345
     
    6971    AND distRun.stage = 'chip'
    7072    AND distComponent.dist_id IS NULL
     73    AND (distRun.clean OR chipRun.magicked OR distRun.no_magic)
    7174    -- where hook 2 %s
    7275UNION
     
    98101    AND distRun.stage = 'camera'
    99102    AND distComponent.dist_id IS NULL
     103    AND (distRun.clean OR chipRun.magicked OR distRun.no_magic)
    100104    -- where hook 3 %s
    101105UNION
     
    157161    AND distRun.stage = 'warp'
    158162    AND distComponent.dist_id IS NULL
     163    AND (distRun.clean OR warpRun.magicked OR distRun.no_magic)
    159164    -- where hook 5 %s
    160165UNION
     
    186191    AND distRun.stage = 'diff'
    187192    AND distComponent.dist_id IS NULL
     193    AND (distRun.clean OR diffRun.magicked OR distRun.no_magic)
    188194    -- where hook 6 %s
    189195UNION
Note: See TracChangeset for help on using the changeset viewer.