IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 35791 for trunk/ippScripts


Ignore:
Timestamp:
Jul 10, 2013, 12:24:05 PM (13 years ago)
Author:
bills
Message:

if config file is missing and has no storage object don't raise error_cleaned error
Treat it the same way as a lost config file and cleanup the component anyways

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/ipp_cleanup.pl

    r35787 r35791  
    242242                    my $fault = $imfile->{fault};
    243243
    244                     if (file_gone($config_file)) {
     244                    if (file_gone($config_file) or !storage_object_exists($config_file)) {
    245245                        # config file was lost. Clean up. If the chip is ever updated a new config
    246246                        # file will be created
     
    551551                    my $fault = $skyfile->{fault};
    552552                    my $quality = $skyfile->{quality};
    553                     if (file_gone($config_file)) {
     553                    if (file_gone($config_file) or !storage_object_exists($config_file)) {
    554554                        print STDERR "forcing cleanup warp $stage_id $skycell_id fault: $fault quality: $quality"
    555555                            . " because config file ($config_file) is gone\n";
     
    890890                    my $fault = $skyfile->{fault};
    891891                    my $quality = $skyfile->{quality};
    892                     if (file_gone($config_file)) {
     892                    if (file_gone($config_file) or !storage_object_exists($config_file)) {
    893893                        print STDERR "forcing cleanup diff $stage_id $skycell_id fault: $fault quality: $quality"
    894894                            . " because config file ($config_file) is gone\n";
     
    23892389}
    23902390
     2391sub storage_object_exists {
     2392    my $filename = shift;
     2393    $nebulous_server = $ipprc->nebulous() if !$nebulous_server;
     2394    return $nebulous_server->storage_object_exists($filename);
     2395}
     2396
    23912397# XXX we currently do not set the error state in the db on my_die
    23922398sub my_die
Note: See TracChangeset for help on using the changeset viewer.