Changeset 30676 for branches/eam_branches/ipp-20110213/pstamp
- Timestamp:
- Feb 17, 2011, 3:20:07 PM (15 years ago)
- Location:
- branches/eam_branches/ipp-20110213/pstamp/scripts
- Files:
-
- 3 edited
-
pstamp_checkdependent.pl (modified) (2 diffs)
-
pstamp_finish.pl (modified) (1 diff)
-
pstamp_get_image_job.pl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20110213/pstamp/scripts/pstamp_checkdependent.pl
r30588 r30676 193 193 194 194 if (!$job_fault and ($stage eq 'chip')) { 195 # should only get here with data_state 'full' and perhaps destreaking not done 196 my_die ("Unexpected state for ${stage}Run $stage_id $state", $PS_EXIT_PROG_ERROR) 197 if $it->{data_state} ne 'full'; 198 199 # chip processing is done, start destreaking. 200 my @chips; 201 push @chips, $it->{class_id}; 202 $job_fault = check_states_magicDSRun($stage, $stage_id, \@chips, $rlabel, $need_magic, $it->{raw_magicked}, $it->{magic_ds_id}, $it->{dsRun_state}); 195 # what about "error_cleaned" ? 196 if (! ($it->{data_state} =~ /cleaned/) ) { 197 # should only get here with data_state 'full' and perhaps destreaking not done 198 my_die ("Unexpected state for ${stage}Run $stage_id $state", $PS_EXIT_PROG_ERROR) 199 if $it->{data_state} ne 'full'; 200 201 # chip processing is done, start destreaking. 202 my @chips; 203 push @chips, $it->{class_id}; 204 $job_fault = check_states_magicDSRun($stage, $stage_id, \@chips, $rlabel, $need_magic, $it->{raw_magicked}, $it->{magic_ds_id}, $it->{dsRun_state}); 205 } 203 206 } 204 207 … … 245 248 # caller will fault the jobs 246 249 return $error_code; 250 } elsif ($chip->{dsRun_state} eq 'failed_revert') { 251 # XXX: revert failures are rarely fixed. give up but say it's just not available not GONE 252 print "magicDSRun.state = $dsRun_state for chipRun $stage_id is in state failed_revert cannot update\n"; 253 return $PSTAMP_NOT_AVAILABLE; 247 254 } elsif (($chip->{data_state} ne 'update') and ($chip->{data_state} ne 'full')) { 248 255 -
branches/eam_branches/ipp-20110213/pstamp/scripts/pstamp_finish.pl
r29330 r30676 228 228 close JRL; 229 229 } else { 230 my_die("No reglist for successful job: $job_id", $req_id, $PS_EXIT_PROG_ERROR) 231 if $fault eq $PSTAMP_SUCCESS; 230 232 print STDERR "no reglist file for job $job_id\n" if $verbose; 231 233 print $tdf "$rownum|$fault|$error_string|0|$job_id|"; -
branches/eam_branches/ipp-20110213/pstamp/scripts/pstamp_get_image_job.pl
r29561 r30676 87 87 } 88 88 89 my $outdir = dirname($output_base);90 my $prefix = basename($output_base) . "_";91 my $results_file = $output_base . ".bundle_results";92 89 93 90 # Look for programs we need … … 99 96 } 100 97 98 my $outdir = dirname($output_base); 99 my $basename = basename($path_base); 100 my $outroot = $output_base ."_" . $basename; 101 my $results_file = $output_base . ".bundle_results"; 102 101 103 { 102 104 my $command = "$dist_bundle --camera $camera --stage $stage --stage_id $stage_id"; 103 $command .= " --component $component"; 104 $command .= " --path_base $path_base --outdir $outdir --results_file $results_file"; 105 $command .= " --prefix $prefix"; 105 $command .= " --results_file $results_file"; 106 $command .= " --component $component --path_base $path_base --outroot $outroot"; 107 # XXX: we need to do some work if we want to support muggle bundles 108 # $command .= " --no_magic if $no_magic"; 106 109 $command .= " --magicked" if $magicked; 107 # DANGER DANGER do not commit next line108 # $command .= " --no_magic";109 # DANGER DANGER do not commit last line110 110 $command .= " --dbname $dbname" if $dbname; 111 111 $command .= " --verbose" if $verbose;
Note:
See TracChangeset
for help on using the changeset viewer.
