IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 8, 2010, 11:15:35 AM (16 years ago)
Author:
bills
Message:

Implement ordering of pending components by priority

File:
1 edited

Legend:

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

    r27945 r29358  
    2020    recoveryroot,
    2121    re_place,
    22     remove
     22    remove,
     23    IFNULL(Label.priority, 10000) AS priority
    2324FROM rawExp
    2425JOIN magicRun USING (exp_id)
     
    3334    ON magicDSRun.magic_ds_id = magicDSFile.magic_ds_id
    3435    AND magicDSFile.component = diffSkyfile.skycell_id
     36LEFT JOIN Label ON magicDSRun.label = Label.label
    3537WHERE
    3638    magicDSRun.state = 'new'
     
    4042    AND diffSkyfile.quality = 0
    4143    AND magicDSFile.component IS NULL
     44    AND (Label.active OR Label.active IS NULL)
    4245-- bothways diffSkyfiles
    4346UNION
     
    6265    recoveryroot,
    6366    re_place,
    64     remove
     67    remove,
     68    IFNULL(Label.priority, 10000) AS priority
    6569FROM rawExp
    6670JOIN magicRun USING (exp_id)
     
    7579    ON magicDSRun.magic_ds_id = magicDSFile.magic_ds_id
    7680    AND magicDSFile.component = diffSkyfile.skycell_id
     81LEFT JOIN Label ON magicDSRun.label = Label.label
    7782WHERE
    7883    magicDSRun.state = 'new'
     
    8287    AND diffSkyfile.quality = 0
    8388    AND magicDSFile.component IS NULL
     89    AND (Label.active OR Label.active IS NULL)
    8490) AS magicDSRun
    8591-- we need the following so this query is compatible with the other stages
Note: See TracChangeset for help on using the changeset viewer.