IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 24186


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
Files:
9 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'))
  • trunk/ippTools/src/difftool.c

    r24180 r24186  
    15751575
    15761576    psMetadata *where = psMetadataAlloc();
    1577     pxAddLabelSearchArgs (config, where, "-label", "label", "==");
     1577    pxAddLabelSearchArgs (config, where, "-label", "diffRun.label", "==");
    15781578
    15791579    psString query = pxDataGet("difftool_pendingcleanuprun.sql");
     
    16401640        PXOPT_COPY_S64(config->args, where, "-diff_id", "diff_id", "==");
    16411641    }
    1642     pxAddLabelSearchArgs (config, where, "-label", "label", "==");
     1642    pxAddLabelSearchArgs (config, where, "-label", "diffRun.label", "==");
    16431643
    16441644    psString query = pxDataGet("difftool_pendingcleanupskyfile.sql");
  • trunk/ippTools/src/faketool.c

    r24123 r24186  
    895895
    896896    psMetadata *where = psMetadataAlloc();
    897     pxAddLabelSearchArgs (config, where, "-label", "label", "==");
     897    pxAddLabelSearchArgs (config, where, "-label", "fakeRun.label", "==");
    898898
    899899    psString query = pxDataGet("faketool_pendingcleanuprun.sql");
  • trunk/ippTools/src/stacktool.c

    r23921 r24186  
    991991
    992992    psMetadata *where = psMetadataAlloc();
    993     pxAddLabelSearchArgs (config, where, "-label", "label", "==");
     993    pxAddLabelSearchArgs (config, where, "-label", "stackRun.label", "==");
    994994
    995995    psString query = pxDataGet("stacktool_pendingcleanuprun.sql");
     
    10551055        PXOPT_COPY_S64(config->args, where, "-stack_id", "stack_id", "==");
    10561056    }
    1057     pxAddLabelSearchArgs (config, where, "-label", "label", "==");
     1057    pxAddLabelSearchArgs (config, where, "-label", "stackRun.label", "==");
    10581058
    10591059    psString query = pxDataGet("stacktool_pendingcleanupskyfile.sql");
  • trunk/ippTools/src/warptool.c

    r24047 r24186  
    13941394
    13951395    psMetadata *where = psMetadataAlloc();
    1396     pxAddLabelSearchArgs (config, where, "-label", "label", "==");
     1396    pxAddLabelSearchArgs (config, where, "-label", "warpRun.label", "==");
    13971397
    13981398    psString query = pxDataGet("warptool_pendingcleanuprun.sql");
     
    14571457    psMetadata *where = psMetadataAlloc();
    14581458    PXOPT_COPY_S64(config->args, where, "-warp_id", "warp_id", "==");
    1459     pxAddLabelSearchArgs (config, where, "-label", "label", "==");
     1459    pxAddLabelSearchArgs (config, where, "-label", "warpRun.label", "==");
    14601460
    14611461    psString query = pxDataGet("warptool_pendingcleanupskyfile.sql");
Note: See TracChangeset for help on using the changeset viewer.