IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 29, 2010, 12:04:03 PM (16 years ago)
Author:
bills
Message:

order work to do by priority

File:
1 edited

Legend:

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

    r24949 r28768  
    11SELECT DISTINCT
    2     magic_id
     2    magic_id,
     3    IFNULL(priority, 10000) AS priority
    34FROM magicTree
    45JOIN magicRun USING(magic_id)
    56LEFT JOIN magicNodeResult USING(magic_id, node)
     7LEFT JOIN Label ON magicRun.label = Label.label
    68WHERE
    79    magicRun.state = 'new'
     
    911-- WHERE hook %s
    1012ORDER BY
    11     magicRun.magic_id
     13    priority DESC, magicRun.magic_id
Note: See TracChangeset for help on using the changeset viewer.