IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28227


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

don't set request state to stop if pstamp_finish fails. All user errors should be handled now
and a fault is a problem we should fix

File:
1 edited

Legend:

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

    r28046 r28227  
    275275                print STDERR "Unable to perform $command error code: $error_code\n";
    276276                $request_fault = $error_code >> 8;
     277                stop_request_and_exit($req_id, $request_fault);
    277278            }
    278279        }
     
    291292            print STDERR "Unable to perform $command error code: $error_code\n";
    292293            $request_fault = $error_code >> 8;
    293             # fall through to stop the request
     294            stop_request_and_exit($req_id, $request_fault);
    294295        }
    295296    }
    296297    # set the request's state to stop
    297298    {
    298         my $command = "$pstamptool -updatereq -req_id $req_id -set_state stop -set_fault $request_fault";
     299        my $command = "$pstamptool -updatereq -req_id $req_id -set_state stop";
    299300        $command   .= " -dbname $dbname" if $dbname;
    300301        $command   .= " -dbserver $dbserver" if $dbserver;
     
    309310
    310311sub stop_request_and_exit {
     312    # this no longer stops the request. Arguably this should be an old fashioned mydie
    311313    my $req_id = shift;
    312314    my $fault  = shift;
    313315
    314     my $command = "$pstamptool -updatereq -req_id $req_id -set_state stop -set_fault $fault";
     316    my $command = "$pstamptool -updatereq -req_id $req_id -set_fault $fault";
    315317    $command   .= " -dbname $dbname" if $dbname;
    316318    $command   .= " -dbserver $dbserver" if $dbserver;
Note: See TracChangeset for help on using the changeset viewer.