IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 20, 2013, 9:49:30 AM (13 years ago)
Author:
eugene
Message:

box.ingested value is now the hostname

File:
1 edited

Legend:

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

    r35181 r35183  
    587587        # blow away existing dvoDetection table
    588588
    589         # clear the 'ingested' field for all boxes
    590         # XXX oops: this causes problems for multiple loaders...
    591         # set/clear should be using the HOST id as the value in the table.
    592         # self.ippToPspsDb.clearIngestedBoxes()
     589        # clear the 'ingested' field for all boxes owned by this host
     590        self.ippToPspsDb.clearIngestedBoxes(self.scratchDb.dbHost)
    593591       
     592        print "*******************************************************************************"
     593        self.logger.warning("about to delete detection table and re-ingest; is this correct?")
     594        response = raw_input("(y/n) ")
     595        if response != "y":
     596            raise
     597        self.logger.warning("Are you ABSOLUTELY sure you want to do this?")
     598        response = raw_input("(y/n) ")
     599        if response != "y":
     600            raise
     601
    594602        # drop detections table
    595603        self.logger.infoPair("Dropping table", self.scratchDb.dvoDetectionTable)
     
    644652        ## dvopsps can take a very long time. try 2 or 3 times to re-establish communication with the db before proceeding?
    645653
    646         self.ippToPspsDb.setIngestedBox(boxId)
     654        self.ippToPspsDb.setIngestedBox(boxId, self.scratchDb.dbHost)
    647655
    648656        # add fileID column
Note: See TracChangeset for help on using the changeset viewer.