- Timestamp:
- May 14, 2015, 7:17:23 AM (11 years ago)
- File:
-
- 1 edited
-
trunk/ippMonitor/czartool/roboczar.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippMonitor/czartool/roboczar.pl
r38206 r38276 34 34 # "chipbackground" 35 35 36 # XXX Currently the code to check for stuck stages is commented out. 37 # Now the function StageMetrics needs a database so declare one. 38 # This functionality is not tested. 39 my $dbname = 'gpc1'; 40 36 41 my @interestedServers = $config->getRoboczarInterestedServers(); 37 42 … … 52 57 $anythingToReport = 1; 53 58 } 54 # if (anyStuckStages( "2 HOUR", \$stuckMessage)) {59 # if (anyStuckStages($dbname, "2 HOUR", \$stuckMessage)) { 55 60 56 61 # $message .= "\n\n" . $stuckMessage; … … 80 85 ########################################################################### 81 86 sub anyStuckStages { 82 my ($ interval, $message) = @_;87 my ($dbname, $interval, $message) = @_; 83 88 84 89 my $end = $czarDb->getNowTimestamp(); … … 96 101 foreach $stage (@stages) { 97 102 98 my $stageMetrics = new czartool::StageMetrics($stage, "all_stdscience_labels", $ begin, $end);103 my $stageMetrics = new czartool::StageMetrics($stage, "all_stdscience_labels", $dbname, $begin, $end); 99 104 100 if ($czarDb->runAnalysis($stageMetrics )) {$stageMetrics->printMe();}105 if ($czarDb->runAnalysis($stageMetrics, $dbname)) {$stageMetrics->printMe();} 101 106 102 107 if ($stageMetrics->getStuck() && $stage eq "burntool" && !$worryAboutBurntool) {next;}
Note:
See TracChangeset
for help on using the changeset viewer.
