IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 30634


Ignore:
Timestamp:
Feb 14, 2011, 2:19:51 PM (15 years ago)
Author:
bills
Message:

various postage stamp fixes

Location:
tags/ipp-20101215/pstamp/scripts
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-20101215/pstamp/scripts

  • tags/ipp-20101215/pstamp/scripts/pstamp_checkdependent.pl

    r30589 r30634  
    193193
    194194    if (!$job_fault and ($stage eq 'chip')) {
    195         # should only get here with data_state 'full' and perhaps destreaking not done
    196         my_die ("Unexpected state for ${stage}Run $stage_id $state", $PS_EXIT_PROG_ERROR)
    197             if $it->{data_state} ne 'full';
    198 
    199         # chip processing is done, start destreaking.
    200         my @chips;
    201         push @chips, $it->{class_id};
    202         $job_fault = check_states_magicDSRun($stage, $stage_id, \@chips, $rlabel, $need_magic, $it->{raw_magicked}, $it->{magic_ds_id}, $it->{dsRun_state});
     195        # what about "error_cleaned" ?
     196        if (! ($it->{data_state} =~ /cleaned/) ) {
     197            # should only get here with data_state 'full' and perhaps destreaking not done
     198            my_die ("Unexpected state for ${stage}Run $stage_id $state", $PS_EXIT_PROG_ERROR)
     199                if $it->{data_state} ne 'full';
     200
     201            # chip processing is done, start destreaking.
     202            my @chips;
     203            push @chips, $it->{class_id};
     204            $job_fault = check_states_magicDSRun($stage, $stage_id, \@chips, $rlabel, $need_magic, $it->{raw_magicked}, $it->{magic_ds_id}, $it->{dsRun_state});
     205        }
    203206    }
    204207
     
    245248            # caller will fault the jobs
    246249            return $error_code;
     250        } elsif ($chip->{dsRun_state} eq 'failed_revert') {
     251            # XXX: revert failures are rarely fixed. give up but say it's just not available not GONE
     252            print "magicDSRun.state = $dsRun_state for chipRun $stage_id is in state failed_revert cannot update\n";
     253            return $PSTAMP_NOT_AVAILABLE;
    247254        } elsif (($chip->{data_state} ne 'update') and ($chip->{data_state} ne 'full')) {
    248255
  • tags/ipp-20101215/pstamp/scripts/pstamp_finish.pl

    r29330 r30634  
    228228                close JRL;
    229229            } else {
     230                my_die("No reglist for successful job: $job_id", $req_id, $PS_EXIT_PROG_ERROR)
     231                    if $fault eq $PSTAMP_SUCCESS;
    230232                print STDERR "no reglist file for job $job_id\n" if $verbose;
    231233                print $tdf "$rownum|$fault|$error_string|0|$job_id|";
  • tags/ipp-20101215/pstamp/scripts/pstamp_job_run.pl

    • Property svn:mergeinfo deleted
Note: See TracChangeset for help on using the changeset viewer.