IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 24186 for trunk/ippTools/share


Ignore:
Timestamp:
May 14, 2009, 3:33:15 PM (17 years ago)
Author:
bills
Message:

fix some bugs in the pending cleanup queries. (Mostly that label was ambiguous)

Location:
trunk/ippTools/share
Files:
5 edited

Legend:

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

    r19092 r24186  
    99    USING(diff_id)
    1010JOIN warpSkyfile
    11     ON  diffInputSkyfile.warp_id    = warpSkyfile.warp_id
     11    ON  diffInputSkyfile.warp1    = warpSkyfile.warp_id
    1212    AND diffInputSkyfile.skycell_id = warpSkyfile.skycell_id
    1313    AND diffInputSkyfile.tess_id    = warpSkyfile.tess_id
     
    2323    USING(exp_id)
    2424WHERE
    25     diffRun.state = 'goto_cleaned'
     25    (diffRun.state = 'goto_cleaned' OR diffRun.state = 'goto_scrubbed' OR diffRun.state = 'goto_purged')
  • trunk/ippTools/share/difftool_pendingcleanupskyfile.sql

    r23912 r24186  
    99    USING(diff_id)
    1010WHERE
    11     diffRun.state = 'goto_cleaned'
    12     AND diffSkyfile.data_state = 'full'
     11   ((diffRun.state = 'goto_cleaned'  AND diffSkyfile.data_state = 'full')
     12    OR
     13    (diffRun.state = 'goto_scrubbed' AND diffSkyfile.data_state != 'scrubbed')
     14    OR
     15    (diffRun.state = 'goto_purged'   AND diffSkyfile.data_state != 'purged'))
  • trunk/ippTools/share/stacktool_pendingcleanuprun.sql

    r19526 r24186  
    2727     USING (exp_id)
    2828WHERE
    29     stackRun.state = 'goto_cleaned'
     29    (stackRun.state = 'goto_cleaned' OR stackRun.state = 'goto_scrubbed' OR stackRun.state = 'goto_purged')
  • trunk/ippTools/share/stacktool_pendingcleanupskyfile.sql

    r19092 r24186  
    44    stackRun.workdir,
    55    stackRun.dvodb,
    6     stackRun.tess_id
     6    stackRun.tess_id,
     7    stackRun.skycell_id
    78FROM stackRun
    89JOIN stackSumSkyfile
    910    USING(stack_id)
    1011WHERE
    11     stackRun.state = 'goto_cleaned'
     12    (stackRun.state = 'goto_cleaned' OR stackRun.state = 'goto_scrubbed' OR stackRun.state = 'goto_purged')
  • trunk/ippTools/share/warptool_pendingcleanupskyfile.sql

    r23418 r24186  
    1212   ((warpRun.state = 'goto_cleaned'  AND warpSkyfile.data_state = 'full')
    1313    OR
    14     (warpRun.state = 'goto_scrubbed' AND warpSkyfile.data_state = 'full')
     14    (warpRun.state = 'goto_scrubbed' AND warpSkyfile.data_state != 'scrubbed')
    1515    OR
    1616    (warpRun.state = 'goto_purged'   AND warpSkyfile.data_state != 'purged'))
Note: See TracChangeset for help on using the changeset viewer.