IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27144


Ignore:
Timestamp:
Mar 2, 2010, 2:24:00 PM (16 years ago)
Author:
bills
Message:

during cleanup only change magicDSRun.state to 'goto_cleaned' if the current state is 'full'

Location:
trunk
Files:
3 edited

Legend:

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

    r26939 r27144  
    193193            # Tell magicdstool that we've cleaned up this data, so it needs to do the same if it needs to do the same.
    194194            my $magicdstool = can_run('magicdstool') or die "Can't find magicdstool";
    195             $command = "$magicdstool -stage $stage -stage_id $stage_id -updaterun -set_state goto_cleaned";
     195            $command = "$magicdstool -stage $stage -stage_id $stage_id -updaterun -set_state goto_cleaned -state full";
    196196            $command .= " -dbname $dbname" if defined $dbname;
    197197            ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
     
    313313        # Tell magicdstool that we've cleaned up this data, so it needs to do the same if it needs to do the same.
    314314        my $magicdstool = can_run('magicdstool') or die "Can't find magicdstool";
    315         $command = "$magicdstool -stage $stage -stage_id $stage_id -updaterun -set_state goto_cleaned";
     315        $command = "$magicdstool -stage $stage -stage_id $stage_id -updaterun -set_state goto_cleaned -state full";
    316316        $command .= " -dbname $dbname" if defined $dbname;
    317317        ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
     
    449449            # Tell magicdstool that we've cleaned up this data, so it needs to do the same if it needs to do the same.
    450450            my $magicdstool = can_run('magicdstool') or die "Can't find magicdstool";
    451             $command = "$magicdstool -stage $stage -stage_id $stage_id -updaterun -set_state goto_cleaned";
     451            $command = "$magicdstool -stage $stage -stage_id $stage_id -updaterun -set_state goto_cleaned -state full";
    452452            $command .= " -dbname $dbname" if defined $dbname;
    453453            ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
     
    586586            # Tell magicdstool that we've cleaned up this data, so it needs to do the same if it needs to do the same.
    587587            my $magicdstool = can_run('magicdstool') or die "Can't find magicdstool";
    588             $command = "$magicdstool -stage $stage -stage_id $stage_id -updaterun -set_state goto_cleaned";
     588            $command = "$magicdstool -stage $stage -stage_id $stage_id -updaterun -set_state goto_cleaned -state full";
    589589            $command .= " -dbname $dbname" if defined $dbname;
    590590            ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
     
    739739            # Tell magicdstool that we've cleaned up this data, so it needs to do the same if it needs to do the same.
    740740            my $magicdstool = can_run('magicdstool') or die "Can't find magicdstool";
    741             $command = "$magicdstool -stage $stage -stage_id $stage_id -updaterun -set_state goto_cleaned";
     741            $command = "$magicdstool -stage $stage -stage_id $stage_id -updaterun -set_state goto_cleaned -state full";
    742742            $command .= " -dbname $dbname" if defined $dbname;
    743743            ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
  • trunk/ippTools/src/magicdstool.c

    r27090 r27144  
    573573    PXOPT_COPY_S64(config->args, where, "-stage_id", "stage_id", "==");
    574574    PXOPT_COPY_STR(config->args, where, "-stage", "stage", "==");
     575    PXOPT_COPY_STR(config->args, where, "-state", "state", "==");
    575576
    576577    if (psListLength(where->list) < 2) {
  • trunk/ippTools/src/magicdstoolConfig.c

    r27082 r27144  
    100100    psMetadataAddS64(updaterunArgs, PS_LIST_TAIL, "-magic_ds_id", 0, "define magictool ID", 0);
    101101    psMetadataAddStr(updaterunArgs, PS_LIST_TAIL, "-stage",     0, "define stage", NULL);
     102    psMetadataAddStr(updaterunArgs, PS_LIST_TAIL, "-state",     0, "define state", NULL);
    102103    psMetadataAddS64(updaterunArgs, PS_LIST_TAIL, "-stage_id", 0, "define stage_id", 0);
    103104    psMetadataAddStr(updaterunArgs, PS_LIST_TAIL, "-label",     0, "define label", NULL);
Note: See TracChangeset for help on using the changeset viewer.