Changeset 32926
- Timestamp:
- Dec 12, 2011, 1:52:21 PM (15 years ago)
- Location:
- tags/ipp-20111110
- Files:
-
- 3 edited
-
ippTools/share/chiptool_setimfiletoupdate.sql (modified) (2 diffs)
-
ippTools/share/warptool_towarped.sql (modified) (1 diff)
-
pstamp/scripts/pstamp_checkdependent.pl (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tags/ipp-20111110/ippTools/share/chiptool_setimfiletoupdate.sql
r29887 r32926 1 1 UPDATE chipRun 2 2 JOIN chipProcessedImfile USING(chip_id) 3 LEFT JOIN magicDSRun ON (stage_id = chip_id AND stage = 'chip')4 LEFT JOIN magicDSFile ON (magicDSRun.magic_ds_id = magicDSFile.magic_ds_id5 AND component = class_id)3 -- LEFT JOIN magicDSRun ON (stage_id = chip_id AND stage = 'chip') 4 -- LEFT JOIN magicDSFile ON (magicDSRun.magic_ds_id = magicDSFile.magic_ds_id 5 -- AND component = class_id) 6 6 SET chipRun.state = 'update', 7 7 chipProcessedImfile.data_state = 'update', … … 12 12 AND (chipProcessedImfile.data_state = 'cleaned') 13 13 -- don't queue update if the associated magicDSFile exists and isn't cleaned 14 AND (chipRun.magicked = 015 OR ((magicDSRun.state = 'cleaned' OR magicDSRun.state = 'update')16 AND (magicDSFile.data_state = 'cleaned' OR magicDSFile.data_state = 'update'))17 )14 -- AND (chipRun.magicked = 0 15 -- OR ((magicDSRun.state = 'cleaned' OR magicDSRun.state = 'update') 16 -- AND (magicDSFile.data_state = 'cleaned' OR magicDSFile.data_state = 'update')) 17 -- ) -
tags/ipp-20111110/ippTools/share/warptool_towarped.sql
r32570 r32926 106 106 -- where hook 2 %s 107 107 GROUP BY warp_id, skycell_id 108 -- if warpSkyfile was magicked previously require inputs to be magicked 109 -- this blocks processing until all the chip inputs have been destreaked 110 HAVING COUNT(warpSkyCellMap.class_id) = SUM(IF(chipProcessedImfile.data_state ='full' and (chipRun.magicked = 0 OR chipProcessedImfile.magicked > 0), 1, 0)) 108 HAVING COUNT(warpSkyCellMap.class_id) = SUM(IF(chipProcessedImfile.data_state ='full', 1, 0)) 111 109 -- limit hook 2 %s 112 110 ) -
tags/ipp-20111110/pstamp/scripts/pstamp_checkdependent.pl
r32816 r32926 117 117 } 118 118 } 119 120 # magic is no longer rquired 121 $need_magic = 0; 122 $magic_ok = 1; 119 123 my $status = 0; 120 if ((($it->{state} eq 'full') or ($it->{state} eq 'update')) and ($it->{data_state} eq 'full') 121 and (!$need_magic or $magic_ok or $it->{magicked} > 0)) { 124 if ((($it->{state} eq 'full') or ($it->{state} eq 'update')) and ($it->{data_state} eq 'full')) { 122 125 123 126 # This Dependency is satisfied. All done. Release the pstampJobs … … 197 200 } 198 201 202 if (0) { 199 203 if (!$job_fault and ($stage eq 'chip')) { 200 204 # what about "error_cleaned" ? … … 210 214 } 211 215 } 216 } 212 217 213 218 if ($job_fault >= $PSTAMP_FIRST_ERROR_CODE) { … … 255 260 # caller will fault the jobs 256 261 return $error_code; 257 } elsif ($chip->{dsRun_state} =~ /failed_revert/) {258 # XXX: revert failures are rarely fixed. give up but say it's just not available not GONE259 print "magicDSRun.state = $dsRun_state for chipRun $stage_id is in state failed_revert cannot update\n";260 return $PSTAMP_NOT_AVAILABLE;261 262 } elsif (($chip->{data_state} ne 'update') and ($chip->{data_state} ne 'full')) { 262 263 … … 290 291 # fault the dependent 291 292 my_die("chip $chip->{chip_id} $chip->{class_id} faulted: $chip->{fault}", $chip->{fault}); 292 } elsif ($chip->{dsFile_fault} eq $PSTAMP_GONE) { 293 print STDERR "magicDSFile $chip->{magic_ds_id} $chip->{chip_id} $chip->{class_id} is GONE"; 294 return $PSTAMP_GONE; 295 } elsif ($chip->{dsFile_fault} and ($chip->{dsFile_data_state} eq 'update')) { 296 # fault the dependent 297 my_die("magicDSFile $chip->{magic_ds_id} $chip->{chip_id} $chip->{class_id} faulted: $chip->{dsFile_fault}", $chip->{dsFile_fault}); 298 } 299 } 300 301 my $status = 0; 302 if (!$queued_update) { 303 $status = check_states_magicDSRun('chip', $chip_id, \@chips, $rlabel, $need_magic, $raw_all_magicked, $magic_ds_id, $dsRun_state); 304 } 305 306 return $status; 293 } 294 } 295 296 return 0; 307 297 } 308 298 … … 323 313 # The update system currently requires that data that has been magicked be destreaked 324 314 # at chip stage so it needs magic even if the customer doesn't. 315 if (0) { 325 316 if ($metadata->{magicked} != 0) { 326 317 $need_magic = 1; 327 318 } 328 319 } 329 320 if (($state =~ /error/) or ($state =~ /purged/) or ($state =~ /scrubbed/) or ($state eq 'drop') or 330 321 ($data_state =~ /error/) or ($data_state =~ /purged/) or ($data_state =~ /scrubbed/) or ($data_state eq 'drop')) { … … 423 414 my $metadata = shift; 424 415 my $rlabel = shift; # if defined a new label for the chipRun 425 my $need_magic = shift;416 my $need_magic = 0; 426 417 427 418 my $diff_id = $metadata->{diff_id}; … … 429 420 my $skycell = $metadata; 430 421 my $skycell_id = $skycell->{skycell_id}; 431 432 # The update system currently requires that data that has been magicked be destreaked433 # at chip stage so it needs magic even if the customer doesn't.434 if ($metadata->{magicked} != 0) {435 $need_magic = 1;436 }437 422 438 423 if ($diff_mode == $IPP_DIFF_MODE_WARP_STACK ) {
Note:
See TracChangeset
for help on using the changeset viewer.
