IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 24, 2009, 12:06:55 PM (17 years ago)
Author:
bills
Message:

if a request with a duplicate name is submitted invent a request name
and put the results there

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pstamp/scripts/pstamp_finish.pl

    r25317 r25540  
    177177        my $exp_id = $job->{exp_id};
    178178
    179         if ($fault eq $PSTAMP_DUP_REQUEST) {
     179        if (($fault eq $PSTAMP_DUP_REQUEST) and ($req_name eq "NULL")) {
    180180            # this request had a duplicate request name. We can't put the results
    181181            # on the data store since the product name is already used
     
    183183            stop_request_and_exit($req_id, $fault);
    184184        }
    185 
    186185        my ($row, $req_info, $project) = get_request_info($rows, $rownum);
    187186
     
    202201        }
    203202
    204         if (($job_type eq "stamp") || ($job_type eq "get_image")) {
     203        if (($job_type eq "stamp") || ($job_type eq "get_image") || ($job_type eq "none")) {
    205204            my $jreglist = "$out_dir/reglist$job_id";
    206205            if (open JRL, "<$jreglist") {;
     
    302301    my $rownum = shift;
    303302
     303    if ($rownum eq 0) {
     304        my $dummy_rowinfo = "0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|";
     305        return (undef, $dummy_rowinfo, "none");
     306    }
    304307    my $row = $rows->{$rownum};
     308
    305309
    306310    # these may be set to null during processing
Note: See TracChangeset for help on using the changeset viewer.