IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33573


Ignore:
Timestamp:
Mar 20, 2012, 5:49:41 PM (14 years ago)
Author:
rhenders
Message:

extended timeout period from 6 to 12 hours after dupe exposures were loaded to PSPS

File:
1 edited

Legend:

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

    r33561 r33573  
    141141    want to load a test batch to PSPS
    142142
    143     We also check that these batches are more than 6 HOURs old, so that we don't attempt to
     143    We also check that these batches are more than 12 HOURs old, so that we don't attempt to
    144144    publish something simulataneously with the client that it producing it
    145145    '''
     
    154154               AND loaded_to_datastore != 1 \
    155155               AND timestamp > '2011-10-27' \
    156                AND timestamp < now() -  INTERVAL 6 HOUR"
     156               AND timestamp < now() -  INTERVAL 12 HOUR"
    157157
    158158        ids = []
     
    507507
    508508    '''
    509     Is someone processing this item right now? Checks whether this was attempted within the last 6 HOUR
     509    Is someone processing this item right now? Checks whether this was attempted within the last 12 HOUR
    510510    '''
    511511    def processingNow(self, batchType, stage_id):
     
    517517               AND dvo_db = '" + self.config.dvoLabel + "' \
    518518               AND batch_type != 'IN' \
    519                AND timestamp BETWEEN now() - INTERVAL 6 HOUR AND now()"
     519               AND timestamp BETWEEN now() - INTERVAL 12 HOUR AND now()"
    520520
    521521        try:
Note: See TracChangeset for help on using the changeset viewer.