IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 28, 2010, 2:18:01 PM (16 years ago)
Author:
bills
Message:

first crack at queuing automatic updates for diffSkyfiles. Various bug fixes found in testing

File:
1 edited

Legend:

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

    r27783 r27795  
    536536    # XXX: this code is repeated in queueGetImageJobs we should encapsulate it in a subroutine and share it
    537537    if ($stage ne 'raw') {
    538         # not ready to handle diff update yet. May never support stack
    539         my $allow_wait_for_update = (($stage ne 'stack') and ($stage ne 'diff'));
     538        # updates for stack stage not supported yet
     539        my $allow_wait_for_update = ($stage ne 'stack');
    540540        my $run_state = $image->{state};
    541541        my $data_state = $image->{data_state};
     
    548548            $newState = 'stop';
    549549            $fault = $PSTAMP_GONE;
    550         } elsif ($allow_wait_for_update and
    551                 (($data_state ne 'full') or ($need_magic and ($image->{magicked} < 0)))) {
     550        } elsif (($data_state ne 'full') or ($need_magic and ($image->{magicked} < 0))) {
    552551            if ($stage eq 'chip') {
    553552                my $burntool_state = $image->{burntool_state};
     
    556555                    $fault = $PSTAMP_NOT_AVAILABLE;
    557556                }
     557            }
     558            if (!$allow_wait_for_update) {
     559                print STDERR "wait for update not supported for stage $stage yet\n";
     560                $newState = 'stop';
     561                $fault = $PSTAMP_NOT_AVAILABLE;
    558562            }
    559563            if (!$fault) {
Note: See TracChangeset for help on using the changeset viewer.