IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28609


Ignore:
Timestamp:
Jul 2, 2010, 6:35:13 PM (16 years ago)
Author:
watersc1
Message:

Re-enabled diff 30-day retention.

Added --this_mode_only to cleanup code so I can specify that I only want to cleanup one mode. "diff" for instance.

Location:
trunk
Files:
2 edited

Legend:

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

    r28581 r28609  
    4141# Grab options
    4242my ( $date, $camera, $dbname, $logfile, $verbose, $manual);
    43 my ( $help, $isburning, $force_stack_count, $test_mode, $this_target_only, $this_filter_only, $check_mode);
     43my ( $help, $isburning, $force_stack_count, $test_mode, $this_target_only, $this_filter_only, $this_mode_only, $check_mode);
    4444my ( $check_registration, $define_burntool, $queue_burntool, $check_chips, $queue_chips);
    4545my ( $check_stacks, $queue_stacks, $check_diffs, $queue_diffs, $clean_old);
     
    6060    'this_target_only=s'   => \$this_target_only,
    6161    'this_filter_only=s'   => \$this_filter_only,
     62    'this_mode_only=s'     => \$this_mode_only,
    6263    'check_registration'   => \$check_registration,
    6364    'define_burntool'      => \$define_burntool,
     
    8788           --this_target_only     Process only a single target.
    8889           --this_filter_only     Process only a single filter.
     90           --this_mode_only       Process only a single clean mode.
    8991        Modes:
    9092           --check_registration   Confirm the data downloaded correctly.
     
    130132my %detfilter_list = ();
    131133my %detmax_list = ();
     134my @mode_list = ();
    132135my %clean_commands = ();
    133136my %clean_retention = ();
     
    152155            if (${ $mentry }{name} eq 'MODE') {
    153156                $this_mode = ${ $mentry }{value};
     157                push @mode_list, $this_mode;
    154158            }
    155159            elsif (${ $mentry }{name} eq 'COMMAND') {
     
    264268    }
    265269    die("$this_filter_only is invalid.") if ($#filter_list != 0);
     270}
     271
     272if (defined($this_mode_only)) {
     273    foreach my $t (@mode_list) {
     274        if ($t eq $this_mode_only) {
     275            @mode_list = ($this_mode_only);
     276            last;
     277        }
     278    }
     279    die("$this_mode_only is invalid.") if ($#mode_list != 0);
    266280}
    267281
     
    842856    }
    843857    if (($metadata_out{nsState} eq 'CHECKDETRENDS') && ($exposures > 0)) {
    844         $metadata_out{nsState} eq 'QUEUE_DETRENDS';
     858        $metadata_out{nsState} eq 'QUEUEDETRENDS';
    845859    }
    846860}
     
    10431057    my $pretend = shift;
    10441058
    1045     foreach my $mode (sort (keys (%clean_commands))) {
     1059    foreach my $mode (@mode_list) {
    10461060        if ((exists($clean_alternate{$mode})) && ($clean_alternate{$mode} eq 'A')) {
    10471061            my ($cleaning_date,$command) = construct_cleantool_args($date,"",$mode);
  • trunk/ippconfig/recipes/nightly_science.config

    r28581 r28609  
    1515  MODE STR DIFF
    1616  COMMAND STR difftool
    17 # RETENTION_TIME U16 30
    18   RETENTION_TIME S16 -1
     17  RETENTION_TIME S16 30
     18#  RETENTION_TIME S16 -1
    1919END
    2020CLEAN_MODES METADATA
    2121  MODE STR DIST
    22   COMMAND STR disttool -
     22  COMMAND STR disttool
    2323  RETENTION_TIME S16 7
    2424  ALTERNATE_CMD STR A
Note: See TracChangeset for help on using the changeset viewer.