Changeset 29756
- Timestamp:
- Nov 11, 2010, 8:44:33 AM (15 years ago)
- File:
-
- 1 edited
-
trunk/tools/roboczar.pl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/roboczar.pl
r29581 r29756 13 13 use czartool::Plotter; 14 14 use czartool::Burntool; 15 use czartool::StageMetrics; 15 16 16 17 my $czarDbName = "czardb"; # TODO variables for other Db stuff, host etc … … 89 90 my $stage; 90 91 foreach $stage (@stages) { 91 my ($started, $finished, $stuck, $processed, $pending, $faults, $totalTime);92 $czarDb->runAnalysis(93 "all_stdscience_labels",94 $stage,95 $begin,96 $end,97 \$started,98 \$finished,99 \$stuck,100 \$processed,101 \$pending,102 \$faults,103 \$totalTime);104 92 105 print "* $stage $end $begin:\n"; 106 if (defined $started) {print "* Processing started at $started\n";} 107 if (defined $finished) {print "* Processing finished at $finished and took $totalTime\n";} 108 else {print "* Processing has not finished\n";} 109 if (defined $stuck) {print "* Processing has been stuck since $stuck\n";} 110 print "* $processed exposures have been processed, with $pending pending and $faults faults\n"; 93 my $stageMetrics = new czartool::StageMetrics($stage, "all_stdscience_labels", $begin, $end); 111 94 112 print "*******************************************************************************\n";95 if ($czarDb->runAnalysis($stageMetrics)) {$stageMetrics->printMe();} 113 96 114 if ($st uck&& $stage eq "burntool" && !$worryAboutBurntool) {next;}97 if ($stageMetrics->getStuck() && $stage eq "burntool" && !$worryAboutBurntool) {next;} 115 98 116 if ($st uck) {99 if ($stageMetrics->getStuck()) { 117 100 118 ${$message} = ${$message} ."\n - '$stage' is stuck with $pending pending exposures (and $faultsfaults)";101 ${$message} = ${$message} ."\n - '$stage' is stuck with ".$stageMetrics->getFinalPending()." pending exposures (and ".$stageMetrics->getFaults()." faults)"; 119 102 $anyStuckStages = 1; 120 103 }
Note:
See TracChangeset
for help on using the changeset viewer.
