IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 36056


Ignore:
Timestamp:
Aug 30, 2013, 12:11:45 PM (13 years ago)
Author:
bills
Message:

only change label to *.BIG once

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-20130712/pstamp/scripts/pstampparse.pl

    r36016 r36056  
    229229foreach my $row (@$rows) {
    230230
    231     if (($label =~ /PSI/ or $label =~ /WEB/) and ($nRows > 200 or $num_jobs > 200) and $req_id and !$no_update) {
     231    if (!($label =~ /BIG/) and ($label =~ /PSI/ or $label =~ /WEB/)  and
     232        ($nRows > 200 or $num_jobs > 200) and $req_id and !$no_update) {
     233
    232234        # this is a big request and it came from one of the "high priority" channels
    233         # upload page and doesn't have a specific label assigned
    234         # change it to a generic one that runs with lower priority
     235        # change the label to one that runs with lower priority
     236        my $old_label = $label;
     237
    235238        $label = ($label =~ /WEB/) ? 'WEB.BIG' : 'PSI.BIG';
    236         print "\nChanging label for big WEB.UP request to $label\n";
     239        print "\nChanging label for big request from $old_label to $label\n";
    237240
    238241        my $command = "$pstamptool -updatereq -req_id $req_id  -set_label $label";
Note: See TracChangeset for help on using the changeset viewer.