Changeset 37068 for branches/eam_branches/ipp-ops-20130712/ippMonitor
- Timestamp:
- Jul 17, 2014, 12:36:19 PM (12 years ago)
- Location:
- branches/eam_branches/ipp-ops-20130712
- Files:
-
- 21 edited
-
. (modified) (1 prop)
-
ippMonitor (modified) (1 prop)
-
ippMonitor/czartool/czartool/Gpc1Db.pm (modified) (6 diffs)
-
ippMonitor/czartool/czartool/czarconfig.xml (modified) (2 diffs)
-
ippMonitor/def/camIQstats.d (modified) (1 diff)
-
ippMonitor/def/camProcessedExp.d (modified) (1 diff)
-
ippMonitor/def/camProcessedExp_Images.d (modified) (2 diffs)
-
ippMonitor/def/camProcessedExp_NoImages.d (modified) (1 diff)
-
ippMonitor/def/camProcessedImfile.d (modified) (1 diff)
-
ippMonitor/def/camStageExp.d (modified) (1 diff)
-
ippMonitor/def/chipIQstats.d (modified) (1 diff)
-
ippMonitor/def/chipProcessedExp.d (modified) (1 diff)
-
ippMonitor/def/chipProcessedImfile.d (modified) (1 diff)
-
ippMonitor/def/chipStageExp.d (modified) (1 diff)
-
ippMonitor/def/diffInputSkyfile.d (modified) (1 diff)
-
ippMonitor/def/diffProcessedSkyfile.d (modified) (1 diff)
-
ippMonitor/def/diffProcessedSkyfile_Images.d (modified) (1 diff)
-
ippMonitor/def/diffRun.d (modified) (1 diff)
-
ippMonitor/def/rawBurntoolState.d (modified) (1 diff)
-
ippMonitor/def/warpProcessedSkyfiles.d (modified) (1 diff)
-
ippMonitor/def/warpProcessedSkyfiles_Images.d (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-ops-20130712
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-ops-20130712/ippMonitor
- Property svn:mergeinfo deleted
-
branches/eam_branches/ipp-ops-20130712/ippMonitor/czartool/czartool/Gpc1Db.pm
r33814 r37068 139 139 my $stateCol = $table.".state"; 140 140 141 my $extraState = ""; 142 if ($state eq 'new') { 143 $extraState = " OR $stateCol = 'update' "; 144 } 145 141 146 my $query = $self->{_db}->prepare(<<SQL); 142 147 SELECT COUNT(DISTINCT $id) … … 144 149 JOIN $joinTable USING ($id) 145 150 WHERE label LIKE '$label' 146 AND ( ($faultCol != 0 AND $stateCol = '$state') OR $stateCol = 'failed_revert')151 AND ($faultCol != 0 AND ($stateCol = '$state' $extraState)) 147 152 SQL 148 153 $query->execute; … … 208 213 my $query = undef; 209 214 215 my $joinTable = undef; 216 my $id = undef; 217 if (!getJoinTableAndId($self, $stage, \$joinTable, \$id)) {return -1;} 218 219 # XXX: the "update" page is now obsolete. The standard processing page should now show 220 # counts in new and update state 210 221 if ($state eq "update") { 211 212 222 if ($stage eq "dist") {return 0;} 213 my $joinTable = undef;214 my $id = undef;215 if (!getJoinTableAndId($self, $stage, \$joinTable, \$id)) {return -1;}216 223 217 224 if ($stage eq "chip" || $stage eq "fake" || $stage eq "warp" || $stage eq "diff" || $stage eq "magicDS") { … … 226 233 } 227 234 else { 228 229 235 $query = $self->{_db}->prepare(<<SQL); 230 236 SELECT COUNT(state) 231 FROM $table JOIN $joinTable 232 USING($id) 237 FROM $table 233 238 WHERE label LIKE '$label' 234 239 AND state = 'update'; 235 240 SQL 241 236 242 } 237 243 … … 240 246 elsif ($state eq "new") { 241 247 242 $query = $self->{_db}->prepare(<<SQL); 243 SELECT COUNT(state) 244 FROM $table 245 WHERE label LIKE '$label' 246 AND (state = 'new' OR state = 'update') 247 SQL 248 if ($stage eq "chip" || $stage eq "fake" || $stage eq "warp" || $stage eq "diff" || $stage eq "magicDS") { 249 # get count of runs in new state and update state that have components left to update 250 $query = $self->{_db}->prepare(<<SQL); 251 SELECT COUNT(DISTINCT $id) 252 FROM $table LEFT JOIN $joinTable 253 USING($id) 254 WHERE label LIKE '$label' 255 AND (state = 'new' OR (state = 'update' AND data_state = 'update')) 256 SQL 257 } else { 258 $query = $self->{_db}->prepare(<<SQL); 259 SELECT COUNT(state) 260 FROM $table 261 WHERE label LIKE '$label' 262 AND (state = 'new' OR state = 'update'); 263 SQL 264 } 248 265 } 249 266 else { … … 256 273 SQL 257 274 } 275 276 # print $query->{Statement} . "\n"; 258 277 259 278 $query->execute; -
branches/eam_branches/ipp-ops-20130712/ippMonitor/czartool/czartool/czarconfig.xml
r35742 r37068 27 27 <gpc1database> 28 28 <name>gpc1</name> 29 <host>scidb m</host>29 <host>scidbs1</host> 30 30 <user>ippuser</user> 31 31 <password>ippuser</password> … … 47 47 <serverinterval>20 MINUTE</serverinterval> 48 48 <!-- whitespace-separated server list for servers we want roboczar to check --> 49 <interestedservers>stdscience distribution summitcopy registration stack p ublishing pstamp </interestedservers>49 <interestedservers>stdscience distribution summitcopy registration stack pstamp </interestedservers> 50 50 <!-- <interestedservers>pstamp</interestedservers> --> 51 51 </roboczar> -
branches/eam_branches/ipp-ops-20130712/ippMonitor/def/camIQstats.d
r27892 r37068 10 10 WHERE camProcessedExp.cam_id = camRun.cam_id 11 11 WHERE camProcessedExp.fault = 0 12 13 RESTRICT_COUNT AND dateobs >= CURDATE() 14 UNRESTRICTED AND dateobs >= CURDATE() 12 15 13 16 ARGS ARG1 rawImfile.exp_id=$rawExp.exp_id -
branches/eam_branches/ipp-ops-20130712/ippMonitor/def/camProcessedExp.d
r27892 r37068 10 10 WHERE camProcessedExp.cam_id = camRun.cam_id 11 11 WHERE camProcessedExp.fault = 0 12 13 RESTRICT_COUNT AND dateobs >= CURDATE() 14 UNRESTRICTED AND dateobs >= CURDATE() 12 15 13 16 # define the arguments supplied to the links below (if any) -
branches/eam_branches/ipp-ops-20130712/ippMonitor/def/camProcessedExp_Images.d
r34011 r37068 3 3 FILE camProcessedExp_Images.php 4 4 MENU ipp.science.dat 5 6 UNRESTRICTED AND 0>17 5 8 6 # the following WHERE clauses are added to all queries joined by AND … … 12 10 WHERE camProcessedExp.cam_id = camRun.cam_id 13 11 WHERE camProcessedExp.fault = 0 12 13 RESTRICT_COUNT AND dateobs >= CURDATE() 14 UNRESTRICTED AND dateobs >= CURDATE() 15 14 16 # define image names to be used below 15 17 # IMAGE VAR basename filerule camera class_id -
branches/eam_branches/ipp-ops-20130712/ippMonitor/def/camProcessedExp_NoImages.d
r27892 r37068 10 10 WHERE camProcessedExp.cam_id = camRun.cam_id 11 11 WHERE camProcessedExp.fault = 0 12 13 RESTRICT_COUNT AND dateobs >= CURDATE() 14 UNRESTRICTED AND dateobs >= CURDATE() 12 15 13 16 # define the arguments supplied to the links below (if any) -
branches/eam_branches/ipp-ops-20130712/ippMonitor/def/camProcessedImfile.d
r27892 r37068 10 10 WHERE camProcessedExp.cam_id = camRun.cam_id 11 11 WHERE chipProcessedImfile.chip_id = camRun.chip_id 12 13 RESTRICT_COUNT AND dateobs >= CURDATE() 14 UNRESTRICTED AND dateobs >= CURDATE() 12 15 13 16 ARGS ARG1 rawImfile.exp_id=$rawExp.exp_id -
branches/eam_branches/ipp-ops-20130712/ippMonitor/def/camStageExp.d
r27892 r37068 6 6 WHERE camRun.chip_id = chipRun.chip_id 7 7 WHERE chipRun.exp_id = rawExp.exp_id 8 9 RESTRICT_COUNT AND dateobs >= CURDATE() 10 UNRESTRICTED AND dateobs >= CURDATE() 8 11 9 12 ARGS ARG1 rawImfile.exp_id=$rawExp.exp_id -
branches/eam_branches/ipp-ops-20130712/ippMonitor/def/chipIQstats.d
r27892 r37068 8 8 WHERE chipRun.exp_id = rawExp.exp_id 9 9 WHERE chipRun.chip_id = chipProcessedImfile.chip_id 10 11 RESTRICT_COUNT AND dateobs >= CURDATE() 12 UNRESTRICTED AND dateobs >= CURDATE() 10 13 11 14 ARGS ARG1 rawImfile.exp_id=$rawExp.exp_id -
branches/eam_branches/ipp-ops-20130712/ippMonitor/def/chipProcessedExp.d
r27892 r37068 7 7 WHERE chipRun.state != 'new' 8 8 WHERE chipRun.exp_id = rawExp.exp_id 9 10 RESTRICT_COUNT AND dateobs >= CURDATE() 11 UNRESTRICTED AND dateobs >= CURDATE() 9 12 10 13 ARGS ARG1 rawImfile.exp_id=$rawExp.exp_id -
branches/eam_branches/ipp-ops-20130712/ippMonitor/def/chipProcessedImfile.d
r32539 r37068 9 9 WHERE chipProcessedImfile.chip_id = chipRun.chip_id 10 10 WHERE chipProcessedImfile.fault = 0 11 12 RESTRICT_COUNT AND dateobs >= CURDATE() 13 UNRESTRICTED AND dateobs >= CURDATE() 11 14 12 15 #UNRESTRICTED WHERE 0=1 -
branches/eam_branches/ipp-ops-20130712/ippMonitor/def/chipStageExp.d
r27892 r37068 5 5 6 6 WHERE chipRun.exp_id = rawExp.exp_id 7 8 RESTRICT_COUNT AND dateobs >= CURDATE() 9 UNRESTRICTED AND dateobs >= CURDATE() 7 10 8 11 ARGS ARG1 rawImfile.exp_id=$rawExp.exp_id -
branches/eam_branches/ipp-ops-20130712/ippMonitor/def/diffInputSkyfile.d
r27892 r37068 5 5 6 6 WHERE diffInputSkyfile.diff_id = diffRun.diff_id 7 8 RESTRICT_COUNT AND 0 = 1 9 UNRESTRICTED AND 0 = 1 7 10 8 11 # field size format name show link to extras -
branches/eam_branches/ipp-ops-20130712/ippMonitor/def/diffProcessedSkyfile.d
r27892 r37068 7 7 # WHERE diffRun.state = 'full' 8 8 # WHERE diffSkyfile.fault = 0 9 10 RESTRICT_COUNT AND 0 = 1 11 UNRESTRICTED AND 0 = 1 9 12 10 13 ARGS ARG7 diffSkyfile.diff_id=$diffSkyfile.diff_id -
branches/eam_branches/ipp-ops-20130712/ippMonitor/def/diffProcessedSkyfile_Images.d
r35660 r37068 3 3 FILE diffProcessedSkyfile_Images.php 4 4 MENU ipp.stack.dat 5 6 #RESTRICT_COUNT AND dateobs >= CURDATE() 7 #UNRESTRICTED AND dateobs >= CURDATE() 5 8 6 9 UNRESTRICTED AND 0>1 -
branches/eam_branches/ipp-ops-20130712/ippMonitor/def/diffRun.d
r27892 r37068 3 3 FILE diffRun.php 4 4 MENU ipp.stack.dat 5 6 #RESTRICT_COUNT WHERE dateobs >= CURDATE() 7 #UNRESTRICTED WHERE dateobs >= CURDATE() 5 8 6 9 # field size format name show link to extras -
branches/eam_branches/ipp-ops-20130712/ippMonitor/def/rawBurntoolState.d
r34014 r37068 5 5 6 6 # if no query restrictions are supplied, we want to limit the query or it is extremely long running: 7 RESTRICT_COUNT WHERE 0>1 8 UNRESTRICTED WHERE exp_id = 0 7 RESTRICT_COUNT WHERE dateobs >= CURDATE() 8 # UNRESTRICTED WHERE exp_id = 0 9 UNRESTRICTED WHERE dateobs >= CURDATE() 9 10 10 11 # field size format name show link to extras -
branches/eam_branches/ipp-ops-20130712/ippMonitor/def/warpProcessedSkyfiles.d
r32368 r37068 4 4 MENU ipp.science.dat 5 5 6 UNRESTRICTED WHERE 0=1 6 RESTRICT_COUNT WHERE dateobs >= CURDATE() 7 UNRESTRICTED WHERE dateobs >= CURDATE() 7 8 8 9 ARGS ARG1 rawImfile.exp_id=$rawExp.exp_id -
branches/eam_branches/ipp-ops-20130712/ippMonitor/def/warpProcessedSkyfiles_Images.d
r33847 r37068 4 4 MENU ipp.science.dat 5 5 6 UNRESTRICTED WHERE 0=1 6 RESTRICT_COUNT WHERE dateobs >= CURDATE() 7 UNRESTRICTED WHERE dateobs >= CURDATE() 8 9 # UNRESTRICTED WHERE 0=1 7 10 8 11 # WHERE warpSkyfile.warp_id = warpRun.warp_id
Note:
See TracChangeset
for help on using the changeset viewer.
