IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 35940


Ignore:
Timestamp:
Aug 13, 2013, 3:35:49 PM (13 years ago)
Author:
bills
Message:

For requests with label like PSI% or WEB% that have more than 100 rows
or generate more than 100 jobs change the labels to WEB.BIG or PSI.BIG
respectivley.

This allows requests with PSI WEB and WEB.UP and a small
number of jobs to run at higher priority
than labels that tend to create large numbers of jobs and thus get
done in a timely fashion.

File:
1 edited

Legend:

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

    r35824 r35940  
    221221foreach my $row (@$rows) {
    222222
    223     if ($label eq 'WEB.UP' and ($nRows > 500 or $num_jobs > 500) and $req_id and !$no_update) {
    224         # this is a big request and it came from the upload page and doesn't have a specific label assigned
    225         # change it to the generic one that has lower with lower priority
    226         $label = 'WEB.BIG';
     223    if (($label =~ /PSI/ or $label =~ /WEB/) and ($nRows > 200 or $num_jobs > 200) and $req_id and !$no_update) {
     224        # this is a big request and it came from one of the "high priority" channels
     225        # upload page and doesn't have a specific label assigned
     226        # change it to a generic one that runs with lower priority
     227        $label = ($label =~ /WEB/) ? 'WEB.BIG' : 'PSI.BIG';
    227228        print "\nChanging label for big WEB.UP request to $label\n";
    228229
Note: See TracChangeset for help on using the changeset viewer.