Changeset 30262
- Timestamp:
- Jan 12, 2011, 4:54:18 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tags/ipp-20101215/ippScripts/scripts/nightly_science.pl
r30133 r30262 1099 1099 my $Npotential = 0; 1100 1100 my $Nqueued = 0; 1101 my $is_processing = 0; 1101 1102 foreach my $target (sort (keys %science_config)) { 1102 1103 if ($science_config{$target}{STACKABLE} == 1) { … … 1107 1108 print STDERR "execute_stacks: Target $target on $date is not fully processed. ($NprocChips $NprocWarps)\n"; 1108 1109 } 1110 $is_processing = 1; 1109 1111 $metadata_out{nsStackState} = 'FORCETOWARP'; 1110 1112 next; … … 1159 1161 $metadata_out{nsStackPotential} = $Npotential; 1160 1162 $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)) { 1162 1164 $metadata_out{nsStackState} = 'FINISHED_STACKS'; 1163 1165 } … … 1291 1293 my $Npotential = 0; 1292 1294 my $Nnoexp = 0; 1295 my $is_processing = 0; 1293 1296 foreach my $target (sort (keys %science_config)) { 1294 1297 if ($science_config{$target}{DIFFABLE} == 1) { … … 1296 1299 $Npotential ++; 1297 1300 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 } 1305 1307 if ($NprocChips == 0) { 1306 1308 $Nnoexp ++; … … 1332 1334 } 1333 1335 } 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)) { 1335 1337 $metadata_out{nsDiffState} = 'FINISHED_DIFFS'; 1336 1338 }
Note:
See TracChangeset
for help on using the changeset viewer.
