IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 18, 2015, 10:21:02 AM (11 years ago)
Author:
eugene
Message:

test queries to all 3 connections to keep them alive while dvopsps runs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/jython/dvo.py

    r38883 r38884  
    158158    def dvopspsRunWithPoll(self,cmd,myTable,waittime):
    159159
    160         # timeout_sql = "set wait_timeout = 5"
    161         # self.scratchDb.execute(timeout_sql)
    162 
    163         ## sql = "set global wait_timeout = 4"
    164         ## print "---- sql: " + sql
    165         ## self.scratchDb.execute(sql)
     160        # sql = "set global wait_timeout = 2"
     161        # print "---- sql: " + sql
     162        # self.scratchDb.execute(sql)
    166163
    167164        (dvoStdoutFile, dvoStdoutName) = tempfile.mkstemp(prefix="dvopsps.stdout.", dir="/tmp")
     
    197194                tableName = rs.getString(1)
    198195                print "--- " + tableName
    199                
     196
    200197                continue
     198
    201199            dvopspsRunning = False
    202200            if p.returncode < 0:
     
    246244        cmd += " -D CATDIR " + self.skychunk.dvoLocation
    247245
    248         self.dvopspsRunWithPoll(cmd, "dvoSkyTable", 2)
     246        self.dvopspsRunWithPoll(cmd, "dvoSkyTable", 30)
    249247
    250248        self.logger.infoPair("Adding index to", self.scratchDb.dvoSkyTable)
Note: See TracChangeset for help on using the changeset viewer.