Changeset 36709 for trunk/ippToPsps/jython/loader.py
- Timestamp:
- Apr 30, 2014, 4:28:10 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/jython/loader.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/loader.py
r36697 r36709 234 234 # loop round IDs of all items to be processed 235 235 self.ippToPspsDb.lockBatchTable() 236 self.logger.infoPair("heather:","lockbatchtable")236 #self.logger.infoPair("heather:","lockbatchtable") 237 237 unattemptedCount = 0 238 238 for id in ids: 239 self.logger.infoPair("heather:","in ids")240 self.logger.infoPair("heather:id",str(id))239 #self.logger.infoPair("heather:","in ids") 240 #self.logger.infoPair("heather:id",str(id)) 241 241 batchID = self.ippToPspsDb.createNewBatch(batchType, id) 242 self.logger.infoPair("heather:","creatednewbatch")243 self.logger.infoPair("heather:batchId", str(batchID))242 #self.logger.infoPair("heather:","creatednewbatch") 243 #self.logger.infoPair("heather:batchId", str(batchID)) 244 244 if batchID < 0: 245 245 unattemptedCount += 1 246 246 continue 247 self.logger.infoPair("heather:","passed logic")247 #self.logger.infoPair("heather:","passed logic") 248 248 self.ippToPspsDb.unlockTables() 249 self.logger.infoPair("heather:","unlock table")249 #self.logger.infoPair("heather:","unlock table") 250 250 self.ippToPspsDb.deletePendingItem(batchType, id) 251 self.logger.infoPair("heather:","deleted pending item")251 #self.logger.infoPair("heather:","deleted pending item") 252 252 253 253 # catch any raised exceptions in batch constructors 254 254 try: 255 255 if batchType == "P2": 256 self.logger.infoPair("defining P2 batch for cam_id:",id) 256 257 batch = DetectionBatch(self.logger, 257 258 self.config, … … 264 265 useFullTables) 265 266 elif batchType == "ST": 267 self.logger.infoPair("defining ST batch for sky_id:",id) 266 268 batch = StackBatch(self.logger, 267 269 self.config, … … 328 330 batchID, 329 331 useFullTables) 330 332 331 333 batch.run() 332 334
Note:
See TracChangeset
for help on using the changeset viewer.
