IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 29, 2012, 2:15:01 PM (14 years ago)
Author:
eugene
Message:

merge changes from trunk

Location:
branches/eam_branches/ipp-20120905
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20120905

  • branches/eam_branches/ipp-20120905/pstamp/scripts

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

    r34466 r34735  
    262262        } elsif ($chip->{state} eq 'goto_cleaned') {
    263263
    264             if ($chip->{data_state} eq 'full') {
    265                 # cleanup has been queued, but has not yet finished. (cleanup pantasks is probably stopped)
    266                 # Since this chip is in full go ahead and set the run to state update and change the label.
     264            # we don't need to check for full data_state
     265            # if ($chip->{data_state} eq 'full') {
     266            {
     267                # cleanup must not be running. Set state to update. If this chip is not 'full' it will be
     268                # set to be updated the next time this script is invoked
    267269                # XXX: In the very rare case that this chip run is actually in the running cleanup pantasks
    268270                # queue things may get confused but we can live with that
     
    341343    }
    342344}
     345
     346    my $tess_id = $metadata->{tess_id};
     347    if ($tess_id eq 'RINGS.V0') {
     348        # we have stopped updating data from RINGS.V0
     349        return $PSTAMP_GONE
     350    }
    343351    if (($state =~ /error/) or ($state =~ /purged/) or ($state =~ /scrubbed/) or ($state eq 'drop') or
    344352         ($data_state =~ /error/) or ($data_state =~ /purged/) or ($data_state =~ /scrubbed/) or ($data_state eq 'drop')) {
     
    365373    my $skycell = $metadata;
    366374
    367     if ($skycell->{state} eq 'goto_cleaned' and $skycell->{data_state} eq 'full') {
    368         # cleanup has been queued, but hasn't been done. it's "safe" to set the state back to full
    369         # XXX: seem comments in check_states_chip
     375    # if ($skycell->{state} eq 'goto_cleaned' and $skycell->{data_state} eq 'full') {
     376    if ($skycell->{state} eq 'goto_cleaned') {
     377        # cleanup has been queued, but hasn't finished, probably due to an error or cleanup is not running.
     378        # It's "safe" to set the state to update. If the skycell is not full it will be set to update
     379        # the next time this task runs
    370380        my $command = "$warptool -updaterun -set_state update -warp_id $warp_id";
    371381        $command .= " -set_label $rlabel" if $rlabel;
     
    468478    my $skycell_id = $skycell->{skycell_id};
    469479
    470     if ($metadata->{state} eq 'goto_cleaned' and $metadata->{data_state} eq 'full') {
     480    # if ($metadata->{state} eq 'goto_cleaned' and $metadata->{data_state} eq 'full') {
     481    if ($metadata->{state} eq 'goto_cleaned') {
     482        # cleanup must not be running. Set state to update. If the skycell is not 'full' it will be
     483        # set to be updated the next time this script is invoked
    471484        print "changing state of diffRun $diff_id from goto_cleaned to update. skycell $skycell_id is full\n";
    472485        my $command = "$difftool -updaterun -set_state update -diff_id $diff_id";
Note: See TracChangeset for help on using the changeset viewer.