IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 27, 2010, 10:11:34 AM (16 years ago)
Author:
bills
Message:

Work around error where warptool -scmap returns nothing. (This happens if all of chipProcessedImfile
inputs for a skycell have been deleted. That happened when chiptool -revertprocessedimfile wasn't
checking chipRun.state = 'new' before deleting them

File:
1 edited

Legend:

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

    r28064 r28134  
    299299        my $command = "$warptool -scmap -warp_id $warp_id -skycell_id $skycell_id";
    300300        my $data = runToolAndParse($command, $verbose);
    301         my_die("failed to find warpSkyCelllMap for warpRun $warp_id skycell_id $skycell_id", $PS_EXIT_UNKNOWN_ERROR)
    302             if !$data or scalar @$data == 0;
     301        if (!$data or scalar @$data == 0) {
     302            # This happens if the chipProcessedImfile disappears which happened when earlier
     303            # versions of chiptool -revertprocessedimfile didn't check the chipRun.state before
     304            # deleing the row.
     305            # Fault the jobs so that the Request can finish ...
     306            faultJobs('stop', undef, undef, $PSTAMP_GONE);
     307            # ... and fault the dependent so that we have a record of the error
     308            my_die("failed to find warpSkyCelllMap for warpRun $warp_id skycell_id $skycell_id",
     309                $PS_EXIT_DATA_ERROR);
     310        }
     311
    303312
    304313        my $chips_ready = 1;
Note: See TracChangeset for help on using the changeset viewer.