- Timestamp:
- Sep 15, 2009, 4:02:42 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20090715/pstamp/scripts/pstamp_job_run.pl
r25022 r25406 11 11 use Sys::Hostname; 12 12 use Getopt::Long qw( GetOptions :config auto_help auto_version gnu_getopt ); 13 use Carp; 13 14 use File::Basename; 14 15 use Digest::MD5::File qw( file_md5_hex ); … … 137 138 } 138 139 } 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); 140 141 141 142 my $uri = ""; … … 201 202 my $exit_code = shift; # Exit code to add 202 203 203 $exit_code = $PS_EXIT_PROG_ERROR unless defined$exit_code;204 $exit_code = $PS_EXIT_PROG_ERROR unless $exit_code; 204 205 205 206 carp($msg); … … 208 209 $command .= " -job_id $job_id"; 209 210 $command .= " -fault $exit_code"; 211 # XXX: fix pstamptool to not require -state when -fault with nonzero value is provided 212 $command .= " -state run"; 210 213 $command .= " -dbname $dbname" if defined $dbname; 211 214 $command .= " -dbserver $dbserver" if defined $dbserver;
Note:
See TracChangeset
for help on using the changeset viewer.
