IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28224


Ignore:
Timestamp:
Jun 4, 2010, 2:22:12 PM (16 years ago)
Author:
bills
Message:

don't advance pstampRequest.state to run unless parsing succeeds. All user triggered errors
should be handled now, so if parser returns an error it is a programming error or system problem.

File:
1 edited

Legend:

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

    r27897 r28224  
    198198$parse_cmd .= " --verbose" if $verbose;
    199199
    200 my $newState = "run";
     200my $newState;
    201201my $fault;
    202202{
     
    224224    }
    225225
    226     unless ($success) {
     226    if ($success) {
     227        $newState = 'run';
     228    } else {
    227229        $fault = $error_code >> 8;
    228 #        $newState = "stop";
    229230    }
    230231}
     
    234235#
    235236{
    236     my $command = "$pstamptool -updatereq -req_id $req_id -set_state $newState";
     237    my $command = "$pstamptool -updatereq -req_id $req_id";
     238    $command   .= " -set_state $newState" if $newState;
    237239    $command   .= " -set_outdir $outdir";
    238240    $command   .= " -set_reqType $reqType" if $reqType;
Note: See TracChangeset for help on using the changeset viewer.