IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 38882


Ignore:
Timestamp:
Oct 17, 2015, 10:27:11 PM (11 years ago)
Author:
eugene
Message:

check all db connections

File:
1 edited

Legend:

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

    r38877 r38882  
    180180                print "--- " + tableName + " : " + str(tableRows)
    181181               
     182                sql = "show tables"
     183                rs = self.gpc1Db.executeQuery(sql)
     184                rs.first()
     185                tableName = rs.getString(1)
     186                print "--- " + tableName
     187               
     188                sql = "show tables"
     189                rs = self.ippToPspsDb.executeQuery(sql)
     190                rs.first()
     191                tableName = rs.getString(1)
     192                print "--- " + tableName
     193               
    182194                continue
    183195            dvopspsRunning = False
     
    228240        cmd += " -D CATDIR " + self.skychunk.dvoLocation
    229241
    230         self.dvopspsRunWithPoll(cmd,"dvoSkyTable",4)
     242        self.dvopspsRunWithPoll(cmd, "dvoSkyTable", 30)
    231243
    232244        self.logger.infoPair("Adding index to", self.scratchDb.dvoSkyTable)
     
    738750        ## dvopsps can take a very long time. try 2 or 3 times to re-establish communication with the db before proceeding?
    739751        ## NOTE: fixed with a poll?
    740         self.dvopspsRunWithPoll(cmd,self.scratchDb.dvoDetectionTable,2)
     752        self.dvopspsRunWithPoll(cmd, self.scratchDb.dvoDetectionTable, 300)
    741753
    742754        self.ippToPspsDb.setIngestedBox(boxId, self.scratchDb.dbHost)
Note: See TracChangeset for help on using the changeset viewer.