IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 28, 2011, 1:20:06 PM (14 years ago)
Author:
bills
Message:

order pending runs by priority desc

File:
1 edited

Legend:

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

    r28154 r33034  
    66    staticskyRun.state,
    77    stackRun.tess_id,
    8     stackRun.skycell_id
     8    stackRun.skycell_id,
     9    IFNULL(Label.priority, 10000) AS priority
    910FROM staticskyRun
    1011JOIN staticskyInput USING (sky_id)
    1112JOIN stackRun USING (stack_id)
    1213LEFT JOIN staticskyResult USING(sky_id)
     14LEFT JOIN Label ON staticskyRun.label = Label.label
    1315WHERE
    1416   (staticskyRun.state = 'new' AND staticskyResult.sky_id IS NULL)
     17   AND (Label.active OR Label.active IS NULL)
     18
    1519    -- WHERE hook %s
    1620GROUP BY sky_id
    1721HAVING SUM(IF(stackRun.state = 'full', 1, 0)) = COUNT(staticskyInput.sky_id)
     22ORDER BY priority DESC, sky_id
Note: See TracChangeset for help on using the changeset viewer.