IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 29, 2010, 10:51:08 AM (16 years ago)
Author:
eugene
Message:

various cleanup and automation operations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20091201/ippScripts/scripts/magic_destreak_cleanup.pl

    r25837 r26721  
    183183        }
    184184
    185         delete_files($rimage, $rmask, $rweight, $rsources, $rastrom, $bimage, $bmask, $bweight, $bsources, $bastrom);
     185        delete_files($rimage, $rmask, $rweight, $rsources, $rastrom, $bimage, $bmask, $bweight, $bsources, $bastrom, $bch_mask, $rch_mask);
    186186
    187187        if ($stage eq "diff" and $inverse) {
     
    199199                $rsources = $ipprc->filename("$name.SOURCES", $recovery_path_base);
    200200            }
    201             delete_files($rimage, $rmask, $rweight, $rsources, undef, $bimage, $bmask, $bweight, $bsources, undef);
     201            # undef is not necessary, it's just to keep the lists in the same order.
     202            delete_files($rimage, $rmask, $rweight, $rsources, undef, $bimage, $bmask, $bweight, $bsources);
    202203        }
    203204}
     
    211212if (!$no_update) {
    212213    my $result = $dbh->do("UPDATE magicDSRun SET state = 'cleaned' WHERE magic_ds_id = ?", undef, $magic_ds_id);
    213     my_die("attempt to update magicDSRun failed", $magic_ds_id, $PS_EXIT_UNKNOWN_ERROR) if $result eq "0E0";
     214    my_die("attempt to update magicDSRun.state failed", $magic_ds_id, $PS_EXIT_UNKNOWN_ERROR) if $result eq "0E0";
    214215} else {
    215216    print STDERR "skipping update of magicDSRun\n";
     
    246247    $exit_code = $PS_EXIT_PROG_ERROR unless defined $exit_code;
    247248
    248     my $command = "$magicdstool -updaterun -fault $exit_code";
     249    my $command = "$magicdstool -updaterun -set_state failed_cleanup";
    249250    $command   .= " -magic_ds_id $magic_ds_id";
    250251    $command   .= " -dbname $dbname" if defined $dbname;
Note: See TracChangeset for help on using the changeset viewer.