IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 31, 2014, 11:50:56 AM (12 years ago)
Author:
eugene
Message:

merge changes from trunk

Location:
branches/eam_branches/ipp-20140226
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20140226

  • branches/eam_branches/ipp-20140226/pstamp/scripts/pstampparse.pl

    r36165 r36622  
    243243my $watch_for_big_requests = (!($label =~ /BIG/) and ($label =~ /PSI/ or $label =~ /WEB/));
    244244
    245 my $big_limit = 100;    # XXX: this should be in a configuration file somewhere not hard coded
     245# XXX: these should be in a configuration file somewhere not hard coded
     246my $big_limit = 100;
     247my $job_big_limit = 400;
    246248
    247249if ($watch_for_big_requests and $nRows > $big_limit) {
     
    267269
    268270    # see whether number of jobs limit for high priority request was exceeded
    269     if ($watch_for_big_requests and $num_jobs > $big_limit) {
     271    if ($watch_for_big_requests and $num_jobs > $job_big_limit) {
    270272        $label = change_to_lower_priority_label($label);
    271273        $watch_for_big_requests = 0;
     
    311313    my $rownum   = $row->{ROWNUM};
    312314    if (!validID($rownum)) {
     315        $rownum = 'NULL' if !defined $rownum;
    313316        print STDERR "$rownum is not a valid ROWNUM\n";
    314317        insertFakeJobForRow($row, 1, $PSTAMP_INVALID_REQUEST);
     
    316319    }
    317320    my $job_type = $row->{JOB_TYPE};
    318     if (($job_type ne "stamp") and ($job_type ne "get_image")) {
     321    if (!defined $job_type || (($job_type ne "stamp") and ($job_type ne "get_image"))) {
     322        $job_type = 'NULL' if !defined $job_type;
    319323        print STDERR "$job_type is not a valid JOB_TYPE\n";
    320324        insertFakeJobForRow($row, 1, $PSTAMP_INVALID_REQUEST);
     
    325329    if (($req_type ne "byid") and ($req_type ne "bycoord") and ($req_type ne "byexp") and
    326330        ($req_type ne "byskycell") and ($req_type ne "bydiff")) {
     331        $req_type = 'NULL' if !defined $req_type;
    327332        print STDERR "$req_type is not a valid REQ_TYPE\n";
    328333        insertFakeJobForRow($row, 1, $PSTAMP_INVALID_REQUEST);
Note: See TracChangeset for help on using the changeset viewer.