IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 17, 2011, 3:20:07 PM (15 years ago)
Author:
eugene
Message:

merge changes from the trunk

Location:
branches/eam_branches/ipp-20110213/pstamp/scripts
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110213/pstamp/scripts/pstamp_checkdependent.pl

    r30588 r30676  
    193193
    194194    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        }
    203206    }
    204207
     
    245248            # caller will fault the jobs
    246249            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;
    247254        } elsif (($chip->{data_state} ne 'update') and ($chip->{data_state} ne 'full')) {
    248255
  • branches/eam_branches/ipp-20110213/pstamp/scripts/pstamp_finish.pl

    r29330 r30676  
    228228                close JRL;
    229229            } else {
     230                my_die("No reglist for successful job: $job_id", $req_id, $PS_EXIT_PROG_ERROR)
     231                    if $fault eq $PSTAMP_SUCCESS;
    230232                print STDERR "no reglist file for job $job_id\n" if $verbose;
    231233                print $tdf "$rownum|$fault|$error_string|0|$job_id|";
  • branches/eam_branches/ipp-20110213/pstamp/scripts/pstamp_get_image_job.pl

    r29561 r30676  
    8787}
    8888
    89 my $outdir = dirname($output_base);
    90 my $prefix = basename($output_base) . "_";
    91 my $results_file = $output_base . ".bundle_results";
    9289
    9390# Look for programs we need
     
    9996}
    10097
     98my $outdir = dirname($output_base);
     99my $basename = basename($path_base);
     100my $outroot = $output_base ."_" . $basename;
     101my $results_file = $output_base . ".bundle_results";
     102
    101103{
    102104    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";
    106109    $command .= " --magicked" if $magicked;
    107     # DANGER DANGER do not commit next line
    108 #    $command .= " --no_magic";
    109     # DANGER DANGER do not commit last line
    110110    $command .= " --dbname $dbname" if $dbname;
    111111    $command .= " --verbose" if $verbose;
Note: See TracChangeset for help on using the changeset viewer.