IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 32227


Ignore:
Timestamp:
Aug 30, 2011, 11:14:27 AM (15 years ago)
Author:
rhenders
Message:

better logging for failed-datastore-queuing

File:
1 edited

Legend:

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

    r32223 r32227  
    11#!/usr/bin/env jython
    22
    3 # The starting point for ippTopsps. See usage below.
     3#
     4# The main loading program for ippToPsps. See usage below.
     5#
    46
    57import time
     
    2426
    2527    batchIDs = ippToPspsDb.getProcessedButFailedDatastoreBatchIDs(EPOCH, DVOGPC1LABEL, batchType)
    26     logger.infoPair("Failed loads to datastore", "%d %s batches" % (len(batchIDs), batchType))
     28    logger.infoPair("%s batches" % batchType, "%d" % len(batchIDs))
    2729
    2830    for batchID in batchIDs:
     
    154156# print info to log
    155157logger.infoSeparator()
    156 logger.infoTitle("ippToPsps started")
     158logger.infoTitle("ippToPsps loading started")
    157159logger.infoPair("Configuration file", CONFIG)
    158160logger.infoPair("Loading epoch", EPOCH)
     
    183185
    184186    # queue up batches that are processed but not loaded to datastore
    185     if QUEUE_P2: publishAnyUnpublishedBatches("P2")
    186     if QUEUE_ST: publishAnyUnpublishedBatches("ST")
     187    logger.infoTitle("Previous failed datastore loads")
     188    publishAnyUnpublishedBatches("P2")
     189    publishAnyUnpublishedBatches("ST")
    187190
    188191    if QUEUE_P2: queueItems("P2")
Note: See TracChangeset for help on using the changeset viewer.