IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 18, 2008, 12:56:11 PM (18 years ago)
Author:
bills
Message:

Add the job id to the response file to support a dquery request generating
multiple jobs

File:
1 edited

Legend:

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

    r18587 r18619  
    8686my (undef, $extname, $extver, $req_name) = split " ", $fields_output;
    8787
     88die "$req_file is missing one of EXTNAME EXTVER or QUERY_ID"
     89    if !(defined($extname) and defined($extver) and defined($req_name));
     90
    8891die "$req_file has EXTNAME $extname not MOPS_DETECTABILITY_QUERY table"
    8992                if $extname ne         "MOPS_DETECTABILITY_QUERY";
    90 die "$req_file does not have a QUERY_ID" if ! $req_name;
    9193die "$req_file is version $extver expecting 1" if $extver ne 1;
    9294
     
    130132        $job_id = join "", @$stdout_buf;
    131133        chomp $job_id;
     134        if ($job_id && -e $response_file) {
     135            rename $response_file, "$out_dir/response${job_id}.fits";
     136        }
    132137        $result = 0;
    133138    } else {
     
    136141    }
    137142}
     143
    138144
    139145{
Note: See TracChangeset for help on using the changeset viewer.