IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28928


Ignore:
Timestamp:
Aug 17, 2010, 10:29:06 AM (16 years ago)
Author:
bills
Message:

from trunk. set job state to gone if inputs do not exist

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-20100701/pstamp/scripts/pstamp_job_run.pl

    r28881 r28928  
    359359    foreach my $f (@_) {
    360360        if (!$ipprc->file_exists($f)) {
    361             my_die( "file $f does not exist:", $job_id, $PS_EXIT_SYS_ERROR);
     361            my_die( "file $f does not exist:", $job_id, $PSTAMP_GONE, 'stop');
    362362        }
    363363    }
     
    369369    my $job_id = shift;         # job identifier
    370370    my $exit_code = shift;      # Exit code to add
     371    my $job_state = shift;      # new pstampJob.state
    371372
    372373    $exit_code = $PS_EXIT_PROG_ERROR unless $exit_code;
     374    $job_state = 'run' unless $job_state;
    373375
    374376    carp($msg);
     
    378380        $command .= " -set_fault $exit_code";
    379381        # XXX: fix pstamptool to not require -state when -fault with nonzero value is provided
    380         $command .= " -set_state run";
     382        $command .= " -set_state $job_state";
    381383        $command .= " -dbname $dbname" if defined $dbname;
    382384        $command .= " -dbserver $dbserver" if defined $dbserver;
Note: See TracChangeset for help on using the changeset viewer.