IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 40092 for trunk/ippMonitor


Ignore:
Timestamp:
Jul 11, 2017, 12:54:40 PM (9 years ago)
Author:
eugene
Message:

get labels from stdscience and distribution pantasks, but merge under stdscience for discplay

File:
1 edited

Legend:

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

    r40089 r40092  
    121121sub updateLabels {
    122122
     123    # this used to have a concept of labels grouped by pantasks server, but we
     124    # don't really care about that.  Just get the labels from the pantasks listed below,
     125    # and update them all into the 'stdscience' block:
     126
    123127    print "* Updating labels\n";
    124128    # my @servers = ("stdscience", "distribution", "publishing", "update");
    125     my @servers = ("stdscience", "stdscience_ws", "distribution");
     129    my @servers = ("stdscience", "distribution");
     130
     131    my @allLabels = ();
    126132
    127133    my $server = undef;
    128134    foreach $server (@servers) {
    129 
    130135        my @labels = @{$pantasks->getLabels($server)};
    131         if (@labels) {
    132 
    133             $czarDb->updateCurrentLabels($server, \@labels);
    134         }
    135         else {
    136 
    137             print "WARNING: No labels to update for '$server'\n";
    138         }
     136        push (@allLabels, @labels);
     137    }
     138
     139    # store them all in stdscience:
     140    $server = "stdscience";
     141    if (@allLabels) {
     142        $czarDb->updateCurrentLabels($server, \@allLabels);
     143    } else {
     144        print "WARNING: No labels to update for '$server'\n";
    139145    }
    140146}
Note: See TracChangeset for help on using the changeset viewer.