IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 31681 for trunk/ippTools/share


Ignore:
Timestamp:
Jun 22, 2011, 2:29:09 PM (15 years ago)
Author:
bills
Message:

Change staticskytool -definebyquery to only queue a run if an existing run for the stacks with
given label and data_group does not exist. This allows it to work properly for single filter
staticskyRuns for nightly stacks and to support use in a survey task. Add a -rerun flag to override
that restriction

File:
1 edited

Legend:

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

    r28091 r31681  
    11SELECT
    22       tess_id,
    3        skycell_id,
     3       skycell_id,
     4       data_group,
     5       label,
    46       num_filter
    57FROM (
     
    79      tess_id,
    810      skycell_id,
     11      label,
     12      data_group,
    913      COUNT(DISTINCT filter) AS num_filter
    1014  FROM stackRun
     
    1721  GROUP BY
    1822      tess_id,
    19       skycell_id
     23      skycell_id,
     24      data_group
    2025  ) AS TMP
     26LEFT JOIN (
     27  SELECT DISTINCT sky_id,
     28    stackRun.skycell_id,
     29    stackRun.label,
     30    stackRun.data_group,
     31    COUNT(stack_id) AS num_filter
     32  FROM staticskyRun
     33    JOIN staticskyInput USING(sky_id)
     34    JOIN stackRun USING(stack_id)
     35    JOIN stackSumSkyfile USING(stack_id)
     36    WHERE 1
     37    -- WHERE hook 2 %s
     38  GROUP BY sky_id
     39 ) AS oldRuns
     40USING(label, data_group, num_filter, skycell_id)
    2141WHERE num_filter = %d
    22 
     42-- WHERE hook 3 %s
Note: See TracChangeset for help on using the changeset viewer.