IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 29579


Ignore:
Timestamp:
Oct 27, 2010, 9:40:35 AM (16 years ago)
Author:
bills
Message:

when one of the inputs to a warp is in error state, fault the dependent

File:
1 edited

Legend:

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

    r29561 r29579  
    229229            push @chips, $chip->{class_id};
    230230
    231             if (($chip->{state} =~ /error/) or ($chip->{state} =~ /purged/) or ($chip->{state} =~ /scrubbed/)) {
    232                 print "chipRun state is $chip->{chip_id} is in state $chip->{state} cannot update\n";
     231            my $state = $chip->{state};
     232            my $data_state = $chip->{data_state};
     233            if (($state =~ /error/) or ($state =~ /purged/) or ($state =~ /scrubbed/) or ($state eq 'drop') or
     234                ($data_state =~ /error/) or ($data_state =~ /purged/) or ($data_state =~ /scrubbed/)) {
     235
     236                print "chipRun state is $chip->{chip_id} has state: $state data_state: $data_state cannot update\n";
    233237                faultJobs('stop', undef, undef, $PSTAMP_GONE);
     238
    234239                return 0;
    235240            } elsif (($chip->{data_state} ne 'update') and ($chip->{data_state} ne 'full')) {
     241
    236242                my $command = "$chiptool -setimfiletoupdate -chip_id $chip_id -class_id $chip->{class_id}";
    237243                $command .= " -set_label $rlabel" if $rlabel;
Note: See TracChangeset for help on using the changeset viewer.