- Timestamp:
- Mar 31, 2014, 11:50:56 AM (12 years ago)
- Location:
- branches/eam_branches/ipp-20140226
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
pstamp/scripts/pstampparse.pl (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20140226
- Property svn:mergeinfo changed
/trunk (added) merged: 36572,36579-36583,36594-36596,36603,36605,36610,36614-36615
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20140226/pstamp/scripts/pstampparse.pl
r36165 r36622 243 243 my $watch_for_big_requests = (!($label =~ /BIG/) and ($label =~ /PSI/ or $label =~ /WEB/)); 244 244 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 246 my $big_limit = 100; 247 my $job_big_limit = 400; 246 248 247 249 if ($watch_for_big_requests and $nRows > $big_limit) { … … 267 269 268 270 # 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) { 270 272 $label = change_to_lower_priority_label($label); 271 273 $watch_for_big_requests = 0; … … 311 313 my $rownum = $row->{ROWNUM}; 312 314 if (!validID($rownum)) { 315 $rownum = 'NULL' if !defined $rownum; 313 316 print STDERR "$rownum is not a valid ROWNUM\n"; 314 317 insertFakeJobForRow($row, 1, $PSTAMP_INVALID_REQUEST); … … 316 319 } 317 320 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; 319 323 print STDERR "$job_type is not a valid JOB_TYPE\n"; 320 324 insertFakeJobForRow($row, 1, $PSTAMP_INVALID_REQUEST); … … 325 329 if (($req_type ne "byid") and ($req_type ne "bycoord") and ($req_type ne "byexp") and 326 330 ($req_type ne "byskycell") and ($req_type ne "bydiff")) { 331 $req_type = 'NULL' if !defined $req_type; 327 332 print STDERR "$req_type is not a valid REQ_TYPE\n"; 328 333 insertFakeJobForRow($row, 1, $PSTAMP_INVALID_REQUEST);
Note:
See TracChangeset
for help on using the changeset viewer.
