Changeset 34595
- Timestamp:
- Oct 25, 2012, 11:26:26 AM (14 years ago)
- File:
-
- 1 edited
-
trunk/pstamp/scripts/pstamp_checkdependent.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pstamp/scripts/pstamp_checkdependent.pl
r34445 r34595 262 262 } elsif ($chip->{state} eq 'goto_cleaned') { 263 263 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 267 269 # XXX: In the very rare case that this chip run is actually in the running cleanup pantasks 268 270 # queue things may get confused but we can live with that … … 365 367 my $skycell = $metadata; 366 368 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 370 374 my $command = "$warptool -updaterun -set_state update -warp_id $warp_id"; 371 375 $command .= " -set_label $rlabel" if $rlabel; … … 468 472 my $skycell_id = $skycell->{skycell_id}; 469 473 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 471 478 print "changing state of diffRun $diff_id from goto_cleaned to update. skycell $skycell_id is full\n"; 472 479 my $command = "$difftool -updaterun -set_state update -diff_id $diff_id";
Note:
See TracChangeset
for help on using the changeset viewer.
