IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 19, 2009, 1:10:43 PM (17 years ago)
Author:
bills
Message:

check file.data_state and run.state and issue error if they are not full

File:
1 edited

Legend:

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

    r25124 r25130  
    374374        my $fault = 0;
    375375
    376 if (0) {
    377         # XXX this doesn't work because not all ippTools outputs include data_state
    378         # fix chipTool also need to not make this test for raw stage
    379         if ((($stage ne 'stack') and ($image->{data_state} ne 'full')) or $image->{state} ne 'full' ){
    380             # XXX here is where we need to queue an update job
    381             # for now just say that the image is not available
    382             $newState = 'stop';
    383             $fault = 49;
    384         }
    385 }
     376        if (($stage ne 'stack') and ($stage ne 'raw')) {
     377            if (($image->{state} eq 'goto_purged') or ($image->{data_state} eq 'purged')) {
     378                $newState = 'stop';
     379                $fault = $PSTAMP_GONE;
     380            } elsif (($image->{data_state} ne 'full') or ($image->{state} ne 'full' )) {
     381                # XXX here is where we need to queue an update job
     382                # for now just say that the image is not available
     383                $newState = 'stop';
     384                $fault = $PSTAMP_NOT_AVAILABLE;
     385            }
     386        }
    386387
    387388        $num_jobs++;
Note: See TracChangeset for help on using the changeset viewer.