IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 15, 2009, 4:02:42 PM (17 years ago)
Author:
eugene
Message:

updates from trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20090715/pstamp/scripts/pstamp_job_run.pl

    r25022 r25406  
    1111use Sys::Hostname;
    1212use Getopt::Long qw( GetOptions :config auto_help auto_version gnu_getopt );
     13use Carp;
    1314use File::Basename;
    1415use Digest::MD5::File qw( file_md5_hex );
     
    137138    }
    138139} elsif ($jobType eq "get_image") {
    139     my_die( "get_image jobs not working right now", $job_id, $PS_EXIT_CONFIG_ERROR);
     140    my_die( "get_image jobs not working right now", $job_id, $PS_EXIT_PROG_ERROR);
    140141
    141142    my $uri = "";
     
    201202    my $exit_code = shift;      # Exit code to add
    202203
    203     $exit_code = $PS_EXIT_PROG_ERROR unless defined $exit_code;
     204    $exit_code = $PS_EXIT_PROG_ERROR unless $exit_code;
    204205
    205206    carp($msg);
     
    208209        $command .= " -job_id $job_id";
    209210        $command .= " -fault $exit_code";
     211        # XXX: fix pstamptool to not require -state when -fault with nonzero value is provided
     212        $command .= " -state run";
    210213        $command .= " -dbname $dbname" if defined $dbname;
    211214        $command .= " -dbserver $dbserver" if defined $dbserver;
Note: See TracChangeset for help on using the changeset viewer.