IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 29052


Ignore:
Timestamp:
Aug 25, 2010, 2:34:20 PM (16 years ago)
Author:
bills
Message:

if $need_magic and chipRun has no magicDSRun (never magicked) fault the jobs depending
on that dependent

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pstamp/scripts/pstamp_checkdependent.pl

    r28929 r29052  
    644644    # if the input file is already magicked no need to queue destreaking for this chipRun
    645645    if ($need_magic and !$input_magicked) {
    646         if ($dsRun_state eq 'cleaned') {
     646        if (!defined($dsRun_state) or ($dsRun_state eq 'NULL')) {
     647            print "No magicDSRun for chipRun $stage_id and magic is required\n";
     648            faultJobs('stop', undef, undef, $PSTAMP_NOT_DESTREAKED);
     649        } elsif ($dsRun_state eq 'cleaned') {
    647650            my $command = "$magicdstool -updaterun -set_state new -stage $stage -stage_id $stage_id";
    648651            $command .= " -set_label $rlabel" if $rlabel;
     
    658661            }
    659662        } elsif ($dsRun_state eq 'failed_revert') {
    660             print "magicDSRun.state = $dsRun_state for chipRun $stage_id is in state failed_revert cannot update";
     663            print "magicDSRun.state = $dsRun_state for chipRun $stage_id is in state failed_revert cannot update\n";
    661664            faultJobs('stop', undef, undef, $PSTAMP_NOT_AVAILABLE);
    662665        } else {
Note: See TracChangeset for help on using the changeset viewer.