IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 41022


Ignore:
Timestamp:
Nov 3, 2019, 3:59:14 PM (7 years ago)
Author:
cclin33
Message:

turn on cleanup czardb

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ccl_branches/ipp-20190806/ippMonitor/czartool/czarpoll.pl

    r41002 r41022  
    276276    while (1) {
    277277        my $iterationStartTime = time();
    278         print $iterationStartTime;
    279         print "\n";
    280278 
    281279        #get the time of last czarpoll update
    282280        $polldate = $czarDb->getPollDate();
    283         print $polldate;
    284         print "\n";
    285281        $polldate=~/^(\d{4})\-(\d{2})\-(\d{2}) (\d{2}):(\d{2}):(\d{2})$/;
    286282        my $date=DateTime->new(year=>$1,month=>$2,day=>$3,hour=>$4,minute=>$5,second=>$6,time_zone=>"HST");
     
    330326                #TdB20190703: The ipp113 and ipp117 instances of czarpoll use the same stage DBs in czarDB.
    331327                #Therefore, it makes no sense to run the cleanup+optimising twice
    332                 #print "* Performing database cleanup\n";
    333                 #$czarDb->cleanupDateRange($yesterday, $yesterday, $config->getCzarCleanupInterval());
     328                print "* Performing database cleanup\n";
     329                $czarDb->cleanupDateRange($yesterday, $yesterday, $config->getCzarCleanupInterval());
    334330                #print "* Optimizing the database\n";
    335331                #$czarDb->optimize();
Note: See TracChangeset for help on using the changeset viewer.