IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 31, 2012, 11:38:18 AM (14 years ago)
Author:
eugene
Message:

merge changes from trunk

Location:
branches/eam_branches/ipp-20120627/pstamp/scripts
Files:
3 edited

Legend:

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

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

    r33056 r34241  
    331331        return $error_code
    332332    }
    333     if (($state eq 'update') and ($metadata->{fault})) {
     333    if (($data_state eq 'full') and ($metadata->{fault})) {
    334334        # fault dependent.
    335335        my $fault = $metadata->{fault};
    336336        print STDERR "warp $warp_id $skycell_id faulted: $fault";
    337337        return $fault;
     338    }
     339    if ($metadata->{quality} ne 0) {
     340        print STDERR "warp $warp_id $skycell_id bad quality on update: $metadata->{quality}\n";
     341        return $PSTAMP_GONE;
    338342    }
    339343
     
    466470                return $warp_status;
    467471            }
    468         }
     472        } elsif ($warp1->{quality} != 0) {
     473            print STDERR "warp $warp1->{warp_id} $skycell_id has poor quality: $warp1->{quality}\n";
     474            faultComponent('diff', $diff_id, $skycell_id, $PSTAMP_GONE);
     475            return $PSTAMP_GONE;
     476        }
    469477        $command = "$warptool -warped -warp_id $skycell->{warp2} -skycell_id $skycell_id";
    470478        my $warp2 = runToolAndParseExpectOne($command, $verbose);
     
    477485                faultComponent('diff', $diff_id, $skycell_id, $PSTAMP_GONE);
    478486            }
    479         }
     487        } elsif ($warp2->{quality} != 0) {
     488            print STDERR "warp $warp2->{warp_id} $skycell_id has poor quality: $warp2->{quality}\n";
     489            faultComponent('diff', $diff_id, $skycell_id, $PSTAMP_GONE);
     490            return $PSTAMP_GONE;
     491        }
    480492
    481493        if (!$warps_ready) {
  • branches/eam_branches/ipp-20120627/pstamp/scripts/pstamp_parser_run.pl

    r33126 r34241  
    127127if ($uri =~ /^http:/) {
    128128    # if the uri is an http uri download the file
    129     my $command = "$dsget --uri $uri --filename $new_uri";
     129    my $command = "$dsget --uri $uri --filename $new_uri --timeout 120";
    130130    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    131131        run(command => $command, verbose => $verbose);
Note: See TracChangeset for help on using the changeset viewer.