IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 5, 2010, 3:35:07 PM (16 years ago)
Author:
bills
Message:

various postage stamp server fixes

File:
1 edited

Legend:

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

    r28878 r29330  
    806806    my ($r_jobState, $r_fault, $r_dep_id, $imagedb, $state, $stage, $stage_id, $component, $need_magic) = @_;
    807807
    808     # XXX: The update process for warp and subsequent stages requires # destreaking to be performed
    809     # because the -pending queries require the inputs to have magicked >= 0
    810     # The case of stack-stack diffs not needing to be destreaked is taken care of in pstamp_checkdependent
    811     $need_magic = 1 if $imagedb eq 'gpc1';
     808    if (($stage ne 'chip') and ($stage ne 'raw')) {
     809        # XXX: The update process for warp and subsequent stages requires that destreaking to be performed
     810        # because the -pending queries require the inputs to have magicked >= 0
     811        # This is too conservative. For example stage is warp and the warp has never been destreaked we don't
     812        # need magic either
     813        # The case of stack-stack diffs not needing to be destreaked is taken care of in pstamp_checkdependent
     814        # maybe we should put all of the smarts there and interpret the need_magic flag in the dependent as
     815        # "The client needs to have magic performed" and let
     816        # XXX: note the very nasty hard coding of gpc1
     817        $need_magic = 1 if $imagedb eq 'gpc1';
     818    }
    812819
    813820    # chipRun's can be in full state if destreaking is necessary
     
    900907                    $$r_newState = 'stop';
    901908                    $$r_fault = $PSTAMP_NOT_AVAILABLE;
    902                 } elsif (!$image->{magicked}) {
     909                } elsif ($need_magic and !$image->{magicked}) {
    903910                    $$r_newState = 'stop';
    904911                    $$r_fault = $PSTAMP_NOT_DESTREAKED;
Note: See TracChangeset for help on using the changeset viewer.