- Timestamp:
- Jun 7, 2014, 5:36:39 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20140423/ippToPsps/jython/loader.py
r35417 r36826 182 182 # XXXX EAM : in parallel model, this should happen for all P2 & Stack batches 183 183 # 184 if (batchType == 'P2' or batchType == 'ST' ) and smfsPerGB > 30:184 if (batchType == 'P2' or batchType == 'ST' or batchType == 'DF' or batchType == 'FW') and smfsPerGB > 30: 185 185 if not self.dvoDetections.sync(): 186 186 self.logger.errorPair("Could not sync DVO with MySQL", "skipping") … … 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, … … 285 287 useFullTables) 286 288 289 elif batchType == "DF": 290 batch = DiffBatch(self.logger, 291 self.config, 292 self.skychunk, 293 self.gpc1Db, 294 self.ippToPspsDb, 295 self.scratchDb, 296 id, 297 batchID, 298 useFullTables) 299 300 elif batchType == "DO": 301 batch = DiffObjectBatch(self.logger, 302 self.config, 303 self.skychunk, 304 self.gpc1Db, 305 self.ippToPspsDb, 306 self.scratchDb, 307 id, 308 batchID, 309 useFullTables) 310 311 elif batchType == "FW": 312 batch = ForcedWarpBatch(self.logger, 313 self.config, 314 self.skychunk, 315 self.gpc1Db, 316 self.ippToPspsDb, 317 self.scratchDb, 318 id, 319 batchID, 320 useFullTables) 321 322 elif batchType == "FO": 323 batch = ForcedObjectBatch(self.logger, 324 self.config, 325 self.skychunk, 326 self.gpc1Db, 327 self.ippToPspsDb, 328 self.scratchDb, 329 id, 330 batchID, 331 useFullTables) 332 287 333 batch.run() 288 334
Note:
See TracChangeset
for help on using the changeset viewer.
