- Timestamp:
- Sep 7, 2010, 9:16:10 AM (16 years ago)
- Location:
- branches/eam_branches/ipp-20100823
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ippMonitor/raw/czartool_labels.php (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20100823
-
branches/eam_branches/ipp-20100823/ippMonitor/raw/czartool_labels.php
r28969 r29124 39 39 if ($selectedStage == "") { $selectedStage = "all_stages"; } 40 40 41 echo 'Some documentation can be found <a href="http://svn.pan-starrs.ifa.hawaii.edu/trac/ipp/wiki/Processing">here</a><br>'; 41 $nsStatus = getNightlyScienceStatus($czardb); 42 echo "<p align=\"center\"> Current status of the IPP as of $lastUpdateTime (faults are shown in parentheses). <br>Documentation can be found <a href=\"http://svn.pan-starrs.ifa.hawaii.edu/trac/ipp/wiki/Processing\">here</a> and cluster load monitored <a href=\"http://ganglia.pan-starrs.ifa.hawaii.edu/?r=hour&s=descending&c=IPP%2520Production\">here</a><br>Current nightly science status: $nsStatus</p>"; 43 42 44 43 45 // deal with reverts: turn on or off if requested and pass current revert state for this stage onto labels table later … … 66 68 67 69 $states=array("full","new","drop","wait"); 68 $stages=array(" chip","cam","fake","warp","stack","diff","magic","magicDS","dist");70 $stages=array("burntool", "chip","cam","fake","warp","stack","diff","magic","magicDS","dist"); 69 71 $servers=array( 70 72 "addstar", … … 87 89 echo "<input type=\"hidden\" name=\"menu\" value=\"$menu\">\n"; 88 90 echo "</form>\n"; 89 echo "<p align=\"center\"> Current status of IPP (any faults are shown in parentheses). NOTE: This data is good as of: $lastUpdateTime </p>";90 91 91 92 echo "<table>\n"; … … 231 232 echo "<tr><td></td>\n"; 232 233 233 echo "<p align=\"center\"> Current labels for $server server </p>";234 echo "<p align=\"center\"> Current labels for $server server (D=distributing, P=publishing)</p>"; 234 235 235 236 write_header_cell($class, ""); … … 238 239 foreach ($stages as &$stage) { 239 240 241 if ($stage == "burntool") continue; 240 242 $reverting = getRevertStatus($db, $stage); 241 243 $link = "czartool_labels.php?pass=" . $pass . "&proj=" . $proj . "&label=" . $selectedLabel . "&stage=" . $selectedStage . "&revertstage=" . $stage . "&revertmode="; … … 249 251 echo "</tr>\n"; 250 252 echo "<tr><td></td>\n"; 253 write_header_cell($class, " "); 251 254 write_header_cell($class, "Label (in order of priority)"); 252 write_header_cell($class, "Distributing?");253 write_header_cell($class, "Publishing?");254 255 foreach ($stages as &$stage) { 255 256 … … 287 288 288 289 echo "<tr><td></td>\n"; 290 $distPub = " "; 291 if ($distributing) $distPub = "D"; 292 if ($publishing) $distPub = $distPub . "P"; 293 write_table_cell($class, '%s', "", $distPub); 294 289 295 write_table_cell($class, '%s', $link, $thisLabel); 290 write_table_cell($class, '%s', "", $distributing ? "yes" : "NO");291 write_table_cell($class, '%s', "", $publishing ? "yes" : "NO");292 296 293 297 $str = ""; 294 298 $anyFaults = false; 299 300 $link = $defaultlink; 301 getStateAndFaults($db, $thisLabel, $selectedState, "burntool", $str, $anyFaults); 302 write_table_cell($class, '%s', $anyFaults ? $link : "", $str); 295 303 296 304 $link = "failedChipProcessedImfile.php?pass=" . $pass . "&proj=" . $proj . "&chipRun.label=" . $thisLabel . "&chipRun.state=new"; … … 337 345 338 346 echo "<tr><td></td>\n"; 347 write_table_cell($class, '%s', "", " "); 339 348 write_table_cell($class, '%s', $link, "All $server labels"); 340 349 … … 355 364 $qry = $db->query($sql); 356 365 if (dberror($qry)) {echo "<b>error with $sql </b><br>\n";} 366 } 367 368 ########################################################################### 369 # 370 # Returns current nightly science status 371 # 372 ########################################################################### 373 function getNightlyScienceStatus($db) { 374 375 $sql = "SELECT status FROM nightlyscience"; 376 if ($debug) {echo "$sql<br>";} 377 378 $qry = $db->query($sql); 379 if (dberror($qry)) {echo "<b>error with $sql </b><br>\n";} 380 $qry->fetchInto($row); 381 382 return $row[0]; 357 383 } 358 384
Note:
See TracChangeset
for help on using the changeset viewer.
