Changeset 30386
- Timestamp:
- Jan 27, 2011, 8:58:49 AM (15 years ago)
- Location:
- tags/ipp-20101215/ippTools
- Files:
-
- 12 edited
-
share/disttool_pending_SSdiff.sql (modified) (3 diffs)
-
share/disttool_pending_camera.sql (modified) (3 diffs)
-
share/disttool_pending_chip.sql (modified) (3 diffs)
-
share/disttool_pending_chip_bg.sql (modified) (3 diffs)
-
share/disttool_pending_diff.sql (modified) (3 diffs)
-
share/disttool_pending_fake.sql (modified) (2 diffs)
-
share/disttool_pending_raw.sql (modified) (9 diffs)
-
share/disttool_pending_sky.sql (modified) (3 diffs)
-
share/disttool_pending_stack.sql (modified) (3 diffs)
-
share/disttool_pending_warp.sql (modified) (3 diffs)
-
share/disttool_pending_warp_bg.sql (modified) (3 diffs)
-
src/disttool.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tags/ipp-20101215/ippTools/share/disttool_pending_SSdiff.sql
r27027 r30386 17 17 diffSkyfile.quality, 18 18 distRun.no_magic, 19 0 AS magicked 19 0 AS magicked, 20 IFNULL(Label.priority, 10000) AS priority 20 21 FROM distRun 21 22 JOIN distTarget USING(target_id, stage, clean) … … 42 43 ON distRun.dist_id = distComponent.dist_id 43 44 AND diffSkyfile.skycell_id = distComponent.component 45 LEFT JOIN Label ON distRun.label = Label.label 44 46 WHERE 45 47 distRun.state = 'new' … … 48 50 AND ((diffRun.magicked > 0) OR distRun.no_magic) 49 51 AND (diffRun.state = 'full' OR (distRun.clean AND diffRun.state = 'cleaned')) 52 AND (Label.active OR Label.active IS NULL) -
tags/ipp-20101215/ippTools/share/disttool_pending_camera.sql
r30321 r30386 15 15 camProcessedExp.quality, 16 16 distRun.no_magic, 17 chipRun.magicked 17 chipRun.magicked, 18 IFNULL(Label.priority, 10000) AS priority 18 19 FROM distRun 19 20 JOIN distTarget USING(target_id, stage, clean) … … 21 22 JOIN camProcessedExp USING(cam_id) 22 23 JOIN chipRun USING(chip_id) 23 -- JOIN chipProcessedImfile USING(exp_id, chip_id)24 24 JOIN rawExp using(exp_id) 25 25 LEFT JOIN distComponent 26 26 ON distRun.dist_id = distComponent.dist_id 27 -- AND chipProcessedImfile.class_id = distComponent.component 27 LEFT JOIN Label 28 ON distRun.label = Label.label 28 29 WHERE 29 30 distRun.state = 'new' … … 32 33 AND (((clean OR (chipRun.magicked != 0)) AND (camRun.magicked > 0)) OR distRun.no_magic) 33 34 AND (camRun.state = 'full' OR (distRun.clean AND camRun.state = 'cleaned')) 35 AND (Label.active OR Label.active IS NULL) -
tags/ipp-20101215/ippTools/share/disttool_pending_chip.sql
r26567 r30386 15 15 chipProcessedImfile.quality, 16 16 distRun.no_magic, 17 chipProcessedImfile.magicked 17 chipProcessedImfile.magicked, 18 IFNULL(Label.priority, 10000) AS priority 18 19 FROM distRun 19 20 JOIN distTarget USING(target_id, stage, clean) … … 24 25 ON distRun.dist_id = distComponent.dist_id 25 26 AND chipProcessedImfile.class_id = distComponent.component 27 LEFT JOIN Label 28 ON distRun.label = Label.label 26 29 WHERE 27 30 distRun.state = 'new' … … 30 33 AND ((chipRun.magicked > 0) OR distRun.no_magic) 31 34 AND (chipRun.state = 'full' OR (distRun.clean AND chipRun.state = 'cleaned')) 35 AND (Label.active OR Label.active IS NULL) -
tags/ipp-20101215/ippTools/share/disttool_pending_chip_bg.sql
r28730 r30386 15 15 0 AS quality, 16 16 distRun.no_magic, 17 chipBackgroundImfile.magicked 17 chipBackgroundImfile.magicked, 18 IFNULL(Label.priority, 10000) AS priority 18 19 FROM distRun 19 20 JOIN distTarget USING(target_id, stage, clean) … … 25 26 ON distRun.dist_id = distComponent.dist_id 26 27 AND chipBackgroundImfile.class_id = distComponent.component 28 LEFT JOIN Label ON distRun.label = Label.label 27 29 WHERE 28 30 distRun.state = 'new' … … 31 33 AND ((chipBackgroundRun.magicked > 0) OR distRun.no_magic) 32 34 AND (chipBackgroundRun.state = 'full') 35 AND (Label.active OR Label.active IS NULL) -
tags/ipp-20101215/ippTools/share/disttool_pending_diff.sql
r26567 r30386 17 17 diffSkyfile.quality, 18 18 distRun.no_magic, 19 diffSkyfile.magicked 19 diffSkyfile.magicked, 20 IFNULL(Label.priority, 10000) AS priority 20 21 FROM distRun 21 22 JOIN distTarget USING(target_id, stage, clean) … … 32 33 ON distRun.dist_id = distComponent.dist_id 33 34 AND diffSkyfile.skycell_id = distComponent.component 35 LEFT JOIN Label ON distRun.label = Label.label 34 36 WHERE 35 37 distRun.state = 'new' … … 38 40 AND ((diffRun.magicked > 0) OR distRun.no_magic) 39 41 AND (diffRun.state = 'full' OR (distRun.clean AND diffRun.state = 'cleaned')) 42 AND (Label.active OR Label.active IS NULL) -
tags/ipp-20101215/ippTools/share/disttool_pending_fake.sql
r27458 r30386 15 15 0 as quality, 16 16 distRun.no_magic, 17 0 as magicked 17 0 as magicked, 18 IFNULL(Label.priority, 10000) AS priority 18 19 FROM distRun 19 20 JOIN distTarget USING(target_id, stage, clean) … … 26 27 ON distRun.dist_id = distComponent.dist_id 27 28 AND fakeProcessedImfile.class_id = distComponent.component 29 LEFT JOIN Label ON distRun.label = Label.label 28 30 WHERE 29 31 distRun.state = 'new' 30 32 AND distRun.stage = 'fake' 31 33 AND distComponent.dist_id IS NULL 34 AND (Label.active OR Label.active IS NULL) -
tags/ipp-20101215/ippTools/share/disttool_pending_raw.sql
r27457 r30386 17 17 0 as quality, 18 18 distRun.no_magic, 19 rawImfile.magicked 19 rawImfile.magicked, 20 IFNULL(Label.priority, 10000) AS priority 20 21 FROM distRun 21 22 JOIN distTarget USING(target_id, stage, clean) … … 28 29 ON distRun.dist_id = distComponent.dist_id 29 30 AND rawImfile.class_id = distComponent.component 31 LEFT JOIN Label ON distRun.label = Label.label 30 32 WHERE 31 33 distRun.state = 'new' … … 34 36 AND distComponent.dist_id IS NULL 35 37 AND (rawExp.magicked OR distRun.no_magic) 38 AND (Label.active OR Label.active IS NULL) 36 39 UNION 37 40 -- raw stage alternate inputs … … 54 57 0 as quality, 55 58 distRun.no_magic, 56 rawImfile.magicked 59 rawImfile.magicked, 60 IFNULL(Label.priority, 10000) AS priority 57 61 FROM distRun 58 62 JOIN distTarget USING(target_id, stage, clean) … … 68 72 ON distRun.dist_id = distComponent.dist_id 69 73 AND rawImfile.class_id = distComponent.component 74 LEFT JOIN Label ON distRun.label = Label.label 70 75 WHERE 71 76 distRun.state = 'new' … … 74 79 AND chipProcessedImfile.data_state = 'full' 75 80 AND chipProcessedImfile.magicked > 0 81 AND (Label.active OR Label.active IS NULL) 76 82 UNION 77 83 -- raw stage clean (dbinfo only) … … 93 99 0 as quality, 94 100 distRun.no_magic, 95 rawExp.magicked 101 rawExp.magicked, 102 IFNULL(Label.priority, 10000) AS priority 96 103 FROM distRun 97 104 JOIN distTarget USING(target_id, stage, clean) … … 99 106 LEFT JOIN distComponent 100 107 ON distRun.dist_id = distComponent.dist_id 108 LEFT JOIN Label ON distRun.label = Label.label 101 109 WHERE 102 110 distRun.state = 'new' … … 104 112 AND distRun.clean 105 113 AND distComponent.dist_id IS NULL 114 AND (Label.active OR Label.active IS NULL) -
tags/ipp-20101215/ippTools/share/disttool_pending_sky.sql
r28959 r30386 15 15 staticskyResult.quality, 16 16 1 AS no_magic, 17 0 AS magicked 17 0 AS magicked, 18 IFNULL(Label.priority, 10000) AS priority 18 19 FROM distRun 19 20 JOIN distTarget USING(target_id, stage, clean) … … 43 44 ON distRun.dist_id = distComponent.dist_id 44 45 AND stackRun.skycell_id = distComponent.component 46 LEFT JOIN Label ON distRun.label = Label.label 45 47 WHERE 46 48 distRun.state = 'new' … … 49 51 AND (staticskyRun.state = 'full' OR (distRun.clean AND staticskyRun.state = 'cleaned')) 50 52 AND (staticskyResult.fault = 0 AND staticskyResult.quality = 0) 53 AND (Label.active OR Label.active IS NULL) -
tags/ipp-20101215/ippTools/share/disttool_pending_stack.sql
r25838 r30386 17 17 stackSumSkyfile.quality, 18 18 1 AS no_magic, 19 0 AS magicked 19 0 AS magicked, 20 IFNULL(Label.priority, 10000) AS priority 20 21 FROM distRun 21 22 JOIN distTarget USING(target_id, stage, clean) … … 43 44 ON distRun.dist_id = distComponent.dist_id 44 45 AND stackRun.skycell_id = distComponent.component 46 LEFT JOIN Label ON distRun.label = Label.label 45 47 WHERE 46 48 distRun.state = 'new' … … 49 51 AND (stackRun.state = 'full' OR (distRun.clean AND stackRun.state = 'cleaned')) 50 52 AND (stackSumSkyfile.fault = 0 AND stackSumSkyfile.quality = 0) 53 AND (Label.active OR Label.active IS NULL) -
tags/ipp-20101215/ippTools/share/disttool_pending_warp.sql
r26567 r30386 15 15 warpSkyfile.quality, 16 16 distRun.no_magic, 17 warpSkyfile.magicked 17 warpSkyfile.magicked, 18 IFNULL(Label.priority, 10000) AS priority 18 19 FROM distRun 19 20 JOIN distTarget USING(target_id, stage, clean) … … 27 28 ON distRun.dist_id = distComponent.dist_id 28 29 AND warpSkyfile.skycell_id = distComponent.component 30 LEFT JOIN Label ON distRun.label = Label.label 29 31 WHERE 30 32 distRun.state = 'new' … … 33 35 AND ((warpRun.magicked > 0) OR distRun.no_magic) 34 36 AND (warpRun.state = 'full' OR (distRun.clean AND warpRun.state = 'cleaned')) 37 AND (Label.active OR Label.active IS NULL) -
tags/ipp-20101215/ippTools/share/disttool_pending_warp_bg.sql
r28742 r30386 15 15 0 as quality, 16 16 distRun.no_magic, 17 warpBackgroundSkyfile.magicked 17 warpBackgroundSkyfile.magicked, 18 IFNULL(Label.priority, 10000) AS priority 18 19 FROM distRun 19 20 JOIN distTarget USING(target_id, stage, clean) … … 28 29 ON distRun.dist_id = distComponent.dist_id 29 30 AND warpBackgroundSkyfile.skycell_id = distComponent.component 31 LEFT JOIN Label ON distRun.label = Label.label 30 32 WHERE 31 33 distRun.state = 'new' … … 34 36 AND ((warpBackgroundRun.magicked > 0) OR distRun.no_magic) 35 37 AND (warpBackgroundRun.state = 'full') 38 AND (Label.active OR Label.active IS NULL) -
tags/ipp-20101215/ippTools/src/disttool.c
r29067 r30386 857 857 psFree(where); 858 858 859 psStringAppend(&query, "\nORDER BY priority DESC, dist_id"); 860 859 861 // treat limit == 0 as "no limit" 860 862 if (limit) {
Note:
See TracChangeset
for help on using the changeset viewer.
