IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 24, 2012, 4:40:12 PM (14 years ago)
Author:
bills
Message:

more work on detectability queries

File:
1 edited

Legend:

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

    r33126 r33141  
    306306    # Load the argument list that dqueryparse should have created the first time it ran, so we know how to
    307307    # run it again the same way.
    308     my $argslist = "$outputBase/parse.args";
     308    my $outdir = dirname($outputBase);
     309    my $argslist = "$outdir/parse.args";
    309310    open ARGSLIST, "<$argslist" or my_die("failed to open argslist file $argslist", $job_id, $PS_EXIT_UNKNOWN_ERROR);
    310311    my $argString = <ARGSLIST>;
     
    319320    $command .= " --dbserver $dbserver" if $dbserver;
    320321    $command .= " --verbose" if $verbose;
     322    $command .= " --save-temps" if $save_temps;
    321323    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    322324        run(command => $command, verbose => $verbose);
     
    616618
    617619    $exit_code = $PS_EXIT_PROG_ERROR unless $exit_code;
     620    if ($exit_code > 100) {
     621        carp ("invalid exit code: $exit_code changing to $PS_EXIT_UNKNOWN_ERROR");
     622        $exit_code = $PS_EXIT_UNKNOWN_ERROR;
     623    }
    618624    $job_state = 'run' unless $job_state;
    619625
Note: See TracChangeset for help on using the changeset viewer.