IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 34595


Ignore:
Timestamp:
Oct 25, 2012, 11:26:26 AM (14 years ago)
Author:
bills
Message:

If runs are found in state goto_cleaned, set them back to update. This has been
running in the ipp-20120802 tag for several weeks

File:
1 edited

Legend:

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

    r34445 r34595  
    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
     
    365367    my $skycell = $metadata;
    366368
    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
     369    # if ($skycell->{state} eq 'goto_cleaned' and $skycell->{data_state} eq 'full') {
     370    if ($skycell->{state} eq 'goto_cleaned') {
     371        # cleanup has been queued, but hasn't finished, probably due to an error or cleanup is not running.
     372        # It's "safe" to set the state to update. If the skycell is not full it will be set to update
     373        # the next time this task runs
    370374        my $command = "$warptool -updaterun -set_state update -warp_id $warp_id";
    371375        $command .= " -set_label $rlabel" if $rlabel;
     
    468472    my $skycell_id = $skycell->{skycell_id};
    469473
    470     if ($metadata->{state} eq 'goto_cleaned' and $metadata->{data_state} eq 'full') {
     474    # if ($metadata->{state} eq 'goto_cleaned' and $metadata->{data_state} eq 'full') {
     475    if ($metadata->{state} eq 'goto_cleaned') {
     476        # cleanup must not be running. Set state to update. If the skycell is not 'full' it will be
     477        # set to be updated the next time this script is invoked
    471478        print "changing state of diffRun $diff_id from goto_cleaned to update. skycell $skycell_id is full\n";
    472479        my $command = "$difftool -updaterun -set_state update -diff_id $diff_id";
Note: See TracChangeset for help on using the changeset viewer.