IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 38276 for trunk


Ignore:
Timestamp:
May 14, 2015, 7:17:23 AM (11 years ago)
Author:
bills
Message:

Adapt commented out code to new StageMetrics by hardcoding database as gpc1.
Not tested.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippMonitor/czartool/roboczar.pl

    r38206 r38276  
    3434#       "chipbackground"
    3535
     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.
     39my $dbname = 'gpc1';
     40
    3641my @interestedServers = $config->getRoboczarInterestedServers();
    3742
     
    5257        $anythingToReport = 1;
    5358    }
    54 #    if (anyStuckStages("2 HOUR", \$stuckMessage)) {
     59#    if (anyStuckStages($dbname, "2 HOUR", \$stuckMessage)) {
    5560
    5661 #       $message .= "\n\n" . $stuckMessage;
     
    8085###########################################################################
    8186sub anyStuckStages {
    82     my ($interval, $message) = @_;
     87    my ($dbname, $interval, $message) = @_;
    8388
    8489    my $end = $czarDb->getNowTimestamp();
     
    96101    foreach $stage (@stages) {
    97102
    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);
    99104
    100     if ($czarDb->runAnalysis($stageMetrics)) {$stageMetrics->printMe();}
     105    if ($czarDb->runAnalysis($stageMetrics, $dbname)) {$stageMetrics->printMe();}
    101106
    102107        if ($stageMetrics->getStuck() && $stage eq "burntool" && !$worryAboutBurntool) {next;}
Note: See TracChangeset for help on using the changeset viewer.