IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 14, 2010, 2:24:09 PM (16 years ago)
Author:
bills
Message:

add priority ordering to pending stacks

File:
1 edited

Legend:

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

    r27929 r29417  
    77    stackRun.label,
    88    stackRun.state,
    9     stackSumSkyfile.path_base
     9    stackSumSkyfile.path_base,
     10    IFNULL(Label.priority, 10000) AS priority
    1011FROM stackRun
    1112JOIN stackInputSkyfile USING(stack_id)
    1213JOIN warpRun USING(warp_id)
    1314LEFT JOIN stackSumSkyfile USING(stack_id)
     15LEFT JOIN Label ON Label.label = stackRun.label
    1416WHERE
    1517    ((stackRun.state = 'new' AND stackSumSkyfile.stack_id IS NULL)
    1618    OR (stackRun.state = 'update' AND stackSumSkyfile.fault = 0 AND stackSumSkyfile.quality = 0))
     19    AND (Label.active OR Label.active IS NULL)
    1720    -- WHERE hook %s
    1821GROUP BY stack_id
Note: See TracChangeset for help on using the changeset viewer.