IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 38277


Ignore:
Timestamp:
May 14, 2015, 2:43:54 PM (11 years ago)
Author:
watersc1
Message:

Change that should fix the cleanup code not being run.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/nightly_science.pro

    r38246 r38277  
    168168# Start a new date to work on
    169169#
     170$ns_init_DB = 0
     171
    170172task              ns.initday.load
    171173  host            local
     
    181183    $today = `date -u +%Y-%m-%d`
    182184    # loop over all databases
    183     for i 0 $DB:n
    184         $thisDB = $DB:$i
     185#    for i 0 $DB:n
     186        $thisDB = $DB:$ns_init_DB
     187
    185188        sprintf key "%s-%s" $today $thisDB
    186189        book newpage nsData $key
     
    197200        book setword nsDiffs $key nsDiffState TOWARP
    198201
     202        $ns_init_DB ++
     203        if ($ns_init_DB >= $DB:n) set $ns_init_DB = 0   
     204
    199205       #command echo $today
    200206       $run = nightly_science.pl --clean_old --date $today --dbname $thisDB --camera $camera_map:$thisDB
    201207       command $run
    202     end
     208#    end
    203209  end
    204210
Note: See TracChangeset for help on using the changeset viewer.