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_tree.sql

    r24174 r28768  
    77    -- note that the type stays a 64 bit int
    88    magicNodeResult.magic_id IS TRUE AS done,
    9     magicNodeResult.fault IS TRUE AS bad
     9    magicNodeResult.fault IS TRUE AS bad,
     10    IFNULL(Label.priority, 10000) AS priority
    1011FROM magicTree
    1112JOIN magicRun USING(magic_id)
    1213JOIN rawExp USING(exp_id)
    1314LEFT JOIN magicNodeResult USING(magic_id, node)
     15LEFT JOIN Label ON magicRun.label = Label.label
    1416WHERE
    1517    magicRun.state = 'new'
    1618-- WHERE hook %s
    1719ORDER BY
    18     magicRun.magic_id
     20    priority, magicRun.magic_id
Note: See TracChangeset for help on using the changeset viewer.