IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 35222


Ignore:
Timestamp:
Mar 3, 2013, 1:22:47 PM (13 years ago)
Author:
eugene
Message:

add an index to stackdetection; give an error message for failed attempts to kill the mysql connection

Location:
trunk/ippToPsps/jython
Files:
3 edited

Legend:

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

    r33787 r35222  
    8484        connectionID = self.getLastConnectionID()
    8585        if connectionID == self.connectionID:
     86            print "not killing connection: ", connectionID
    8687            self.logger.debug("NOT going to kill THIS connection ID")
    8788            return
    8889
    8990        sql = "KILL %d" % connectionID
    90         self.execute(sql)
     91
     92        try:
     93            self.execute(sql)
     94        except:
     95            print "failed to kill connection: ", connectionID
    9196
    9297    '''
  • trunk/ippToPsps/jython/objectbatch.py

    r35174 r35222  
    5454
    5555       try:
     56           ## XX pass in the existing connection to scratchDb
    5657           self.dvoObjects = DvoObjects(self.logger, self.config, self.skychunk, self.ippToPspsDb, self.scratchDb.dbName)
    5758       except:
  • trunk/ippToPsps/jython/stackbatch.py

    r35171 r35222  
    846846        #self.scratchDb.makeColumnUnique("StackDetection", "objID")
    847847        self.scratchDb.createIndex("StackDetection", "ippDetectID")
     848        self.scratchDb.createIndex("StackDetection", "stackDetectID")
    848849        self.scratchDb.createIndex("StackApFlx", "ippDetectID")
    849850        self.scratchDb.createIndex("StackModelFit", "ippDetectID")
Note: See TracChangeset for help on using the changeset viewer.