IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 30261


Ignore:
Timestamp:
Jan 12, 2011, 4:53:01 PM (15 years ago)
Author:
watersc1
Message:

Add check for whether or not we are still processing. If we are, then we don't want to declare completion yet. This might be the root cause of a lot of stack and diff errors.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/nightly_science.pl

    r30132 r30261  
    10991099    my $Npotential = 0;
    11001100    my $Nqueued = 0;
     1101    my $is_processing = 0;
    11011102    foreach my $target (sort (keys %science_config)) {
    11021103        if ($science_config{$target}{STACKABLE} == 1) {
     
    11071108                        print STDERR "execute_stacks: Target $target on $date is not fully processed. ($NprocChips $NprocWarps)\n";
    11081109                    }
     1110                    $is_processing = 1;
    11091111                    $metadata_out{nsStackState} = 'FORCETOWARP';
    11101112                    next;
     
    11591161    $metadata_out{nsStackPotential} = $Npotential;
    11601162    $metadata_out{nsStackQueued}    = $Nqueued;
    1161     if (($Npotential == $Nqueued)&&($metadata_out{nsObservingState} eq 'END_OF_NIGHT')) {
     1163    if (($Npotential == $Nqueued)&&($metadata_out{nsObservingState} eq 'END_OF_NIGHT')&&($is_processing == 0)) {
    11621164        $metadata_out{nsStackState} = 'FINISHED_STACKS';
    11631165    }   
     
    12911293    my $Npotential = 0;
    12921294    my $Nnoexp     = 0;
     1295    my $is_processing = 0;
    12931296    foreach my $target (sort (keys %science_config)) {
    12941297        if ($science_config{$target}{DIFFABLE} == 1) {
     
    12961299                $Npotential ++;
    12971300                my ($NprocChips,$NprocWarps) = pre_diff_queue($date,$observing_state,$target,$filter);
    1298 #               if ((!defined($force_diff_count))&&($NprocChips != $NprocWarps)) {
    1299 #                   if ($debug == 1) {
    1300 #                       print STDERR "execute_diffs: Target $target in filter $filter on $date is not fully processed. ($NprocChips $NprocWarps)\n";
    1301 #                   }
    1302 #                     $metadata_out{nsDiffState} = 'FORCETOWARP';
    1303 #                     next;
    1304 #                 }
     1301                if ((!defined($force_diff_count))&&($NprocChips != $NprocWarps)) {
     1302                    if ($debug == 1) {
     1303                        print STDERR "execute_diffs: Target $target in filter $filter on $date is not fully processed. ($NprocChips $NprocWarps)\n";
     1304                    }
     1305                    $is_processing = 1;
     1306                }
    13051307                if ($NprocChips == 0) {
    13061308                    $Nnoexp ++;
     
    13321334        }
    13331335    }
    1334     if (($Npotential == $Nnoexp)&&($metadata_out{nsObservingState} eq 'END_OF_NIGHT')) {
     1336    if (($Npotential == $Nnoexp)&&($metadata_out{nsObservingState} eq 'END_OF_NIGHT')&&($is_processing == 0)) {
    13351337        $metadata_out{nsDiffState} = 'FINISHED_DIFFS';
    13361338    }   
Note: See TracChangeset for help on using the changeset viewer.