IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 22, 2014, 3:13:30 PM (12 years ago)
Author:
bills
Message:

add a flag to disable 3PI updates

File:
1 edited

Legend:

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

    r36476 r36688  
    2020use PS::IPP::PStamp::RequestFile qw( :standard );
    2121use Carp;
     22
     23my $disable_3PI_updates = 1;
    2224
    2325# XXX: put this in a module somewhere
     
    257259        push @chips, $chip->{class_id};
    258260
     261        if ($disable_3PI_updates && ($chip->{data_group} =~ /ThreePi/)) {
     262            # we are getting close to the end of PV2. Do not update PV1 chips.
     263            print "3PI updates are currently disabled\n";
     264            return $PSTAMP_NOT_AVAILABLE;
     265        }
     266
    259267        my $state = $chip->{state};
    260268        my $data_state = $chip->{data_state};
     
    304312
    305313            # if this is one of the chipRuns from the PV1 LAP regenerate without using the ppImage configdump file
    306             if ($chip->{data_group} =~ /^LAP.ThreePi.20130706/) {
     314            if ($chip->{data_group} =~ /^LAP.ThreePi.20120706/) {
    307315                $command .= ' -set_update_mode 1';
    308316            }
     
    370378    my $state = $metadata->{state};
    371379    my $data_state = $metadata->{data_state};
     380
     381    # we are getting close to the end of PV2. optionally do not update 3Pi data.
     382    if ($disable_3PI_updates && ($metadata->{data_group} =~ /ThreePi/)) {
     383        print "3PI updates are currently disabled\n";
     384        return $PSTAMP_NOT_AVAILABLE;
     385    }
    372386
    373387    # The update system currently requires that data that has been magicked be destreaked
Note: See TracChangeset for help on using the changeset viewer.