IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 24, 2017, 2:55:55 PM (9 years ago)
Author:
watersc1
Message:

Update to czartool to populate summit/download/new/raw Exp tables, and plot those results with the other stages. Fixes bug that allowed plot temp files to remain undeleted

File:
1 edited

Legend:

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

    r40008 r40055  
    6363        "fullforce",
    6464        "dist",
    65         "pub");
     65        "pub",
     66        "summitExp",
     67        "downloadExp",
     68        "newExp",
     69        "rawExp");
     70
     71
    6672
    6773my @ippToPspsStages = (
     
    274280        }
    275281
     282        my @trashFiles = </tmp/czarplot_gnuplot_*>;
     283        if ($#trashFiles != -1) {
     284            print "* WARNING: Cleaning " . ($#trashFiles + 1) . " files that were not auto cleaned.\n";
     285            foreach my $tFile (@trashFiles) {
     286                unlink($tFile);
     287            }
     288        }
     289
    276290        my $iterationTime = time() - $iterationStartTime;
    277291
     
    350364        # skip update labels for now. The plots are not relevant.
    351365        next if $label =~ 'ps_ud';
     366        # Skip individual label tables for raw-like stages.
     367#       if ($stage =~ /Exp/) { next; }
    352368
    353369        $plotter->createTimeSeries($label, undef, $begin, $end, 1, 1, 1);
     
    390406
    391407    foreach $stage (@stages) {
    392 
    393408        $server = $pantasks->getServerForThisStage($stage);
    394409        $pantasks->getRevertStatus($stage, \$reverting);
     
    396411
    397412        print "* Checking labels for $stage stage\n";
     413
     414        # These have no labels to check, so just get them out of the way fast
     415        if (($stage eq 'summitExp')||($stage eq 'downloadExp')||($stage eq 'newExp')||($stage eq 'rawExp')) {
     416            ($new,$full,$faults) = $gpc1Db->countRawExposures($today,$stage);
     417            $czarDb->insertNewTimeData($stage, "all_".$labelServer."_labels", 'gpc1', $new, $full, $faults);
     418
     419            ($new,$full,$faults) = $gpc2Db->countRawExposures($today,$stage);
     420            $czarDb->insertNewTimeData($stage, "all_".$labelServer."_labels", 'gpc2', $new, $full, $faults);
     421
     422            next;
     423        }
     424
    398425
    399426        $totalNew1=$totalFaults1=$totalFull1=0;
Note: See TracChangeset for help on using the changeset viewer.