IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28927


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

if one of the input files does not exist fault the job with state = PSTAMP_GONE. This handles
the case of missing camera mask files. It will give false results in the case of nfs errors
but that should be rare since in the usual case the inputs were just 'updated' so the host
is likely ok

File:
1 edited

Legend:

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

    r28880 r28927  
    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.