IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 30, 2012, 2:49:37 PM (14 years ago)
Author:
eugene
Message:

merge changes from trunk

Location:
branches/eam_branches/ipp-20111122/pstamp/scripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20111122/pstamp/scripts

  • branches/eam_branches/ipp-20111122/pstamp/scripts/pstamp_checkdependent.pl

    r32852 r33638  
    117117    }
    118118}
     119
     120# magic is no longer rquired
     121$need_magic = 0;
     122$magic_ok =  1;
    119123my $status = 0;
    120 if ((($it->{state} eq 'full') or ($it->{state} eq 'update')) and ($it->{data_state} eq 'full')
    121         and (!$need_magic or $magic_ok or $it->{magicked} > 0)) {
     124if ((($it->{state} eq 'full') or ($it->{state} eq 'update')) and ($it->{data_state} eq 'full')) {
    122125
    123126    # This Dependency is satisfied. All done. Release the pstampJobs
     
    197200    }
    198201
     202if (0) {
    199203    if (!$job_fault and ($stage eq 'chip')) {
    200204        # what about "error_cleaned" ?
     
    210214        }
    211215    }
     216}
    212217
    213218    if ($job_fault >= $PSTAMP_FIRST_ERROR_CODE) {
     
    255260            # caller will fault the jobs
    256261            return $error_code;
    257         } elsif ($chip->{dsRun_state} =~ /failed_revert/) {
    258             # XXX: revert failures are rarely fixed. give up but say it's just not available not GONE
    259             print "magicDSRun.state = $dsRun_state for chipRun $stage_id is in state failed_revert cannot update\n";
    260             return $PSTAMP_NOT_AVAILABLE;
    261262        } elsif (($chip->{data_state} ne 'update') and ($chip->{data_state} ne 'full')) {
    262263
     
    284285            } elsif ($fault_count > $max_fault_count) {
    285286                print "$stage $stage_id has faulted $fault_count times. Giving up\n";
    286                 $fault = $PSTAMP_GONE;
    287                 faultComponent('chip', $chip->{chip_id}, $chip->{class_id}, $PSTAMP_GONE);
    288                 return $PSTAMP_GONE;
     287                # XXX: stop faulting chips for now
     288#                $fault = $PSTAMP_GONE;
     289#                faultComponent('chip', $chip->{chip_id}, $chip->{class_id}, $PSTAMP_GONE);
     290                $fault = $PSTAMP_NOT_AVAILABLE;
     291                return $fault;
    289292            }
    290293            # fault the dependent
    291294            my_die("chip $chip->{chip_id} $chip->{class_id} faulted: $chip->{fault}", $chip->{fault});
    292         } elsif ($chip->{dsFile_fault} eq $PSTAMP_GONE) {
    293             print STDERR "magicDSFile $chip->{magic_ds_id} $chip->{chip_id} $chip->{class_id} is GONE";
    294             return $PSTAMP_GONE;
    295         } elsif ($chip->{dsFile_fault} and ($chip->{dsFile_data_state} eq 'update')) {
    296             # fault the dependent
    297             my_die("magicDSFile $chip->{magic_ds_id} $chip->{chip_id} $chip->{class_id} faulted: $chip->{dsFile_fault}", $chip->{dsFile_fault});
    298         }
    299     }
    300 
    301     my $status = 0;
    302     if (!$queued_update) {
    303         $status = check_states_magicDSRun('chip', $chip_id, \@chips, $rlabel, $need_magic, $raw_all_magicked, $magic_ds_id, $dsRun_state);
    304     }
    305 
    306     return $status;
     295        }
     296    }
     297
     298    return 0;
    307299}
    308300
     
    323315    # The update system currently requires that data that has been magicked be destreaked
    324316    # at chip stage so it needs magic even if the customer doesn't.
     317if (0) {
    325318    if ($metadata->{magicked} != 0) {
    326319        $need_magic = 1;
    327320    }
    328 
     321}
    329322    if (($state =~ /error/) or ($state =~ /purged/) or ($state =~ /scrubbed/) or ($state eq 'drop') or
    330323         ($data_state =~ /error/) or ($data_state =~ /purged/) or ($data_state =~ /scrubbed/) or ($data_state eq 'drop')) {
     
    371364        # if chip has been magicked before require it to be magicked again
    372365        # because the warp pending query requires it.
     366if (0) {
    373367        if ($chip->{magicked} < 0) {
    374368            print "Input has been destreaked so we must destreak before warping\n";
    375369            $need_magic = 1
    376370        }
     371}
    377372
    378373        if ($need_magic and ($chip->{magicked} eq 0)) {
     
    423418    my $metadata = shift;
    424419    my $rlabel = shift;     # if defined a new label for the chipRun
    425     my $need_magic = shift;
     420    my $need_magic = 0;
    426421
    427422    my $diff_id   = $metadata->{diff_id};
     
    429424    my $skycell = $metadata;
    430425    my $skycell_id = $skycell->{skycell_id};
    431 
    432     # The update system currently requires that data that has been magicked be destreaked
    433     # at chip stage so it needs magic even if the customer doesn't.
    434     if ($metadata->{magicked} != 0) {
    435         $need_magic = 1;
    436     }
    437426
    438427    if ($diff_mode == $IPP_DIFF_MODE_WARP_STACK ) {
Note: See TracChangeset for help on using the changeset viewer.