Changeset 33573
- Timestamp:
- Mar 20, 2012, 5:49:41 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/jython/ipptopspsdb.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/ipptopspsdb.py
r33561 r33573 141 141 want to load a test batch to PSPS 142 142 143 We also check that these batches are more than 6HOURs old, so that we don't attempt to143 We also check that these batches are more than 12 HOURs old, so that we don't attempt to 144 144 publish something simulataneously with the client that it producing it 145 145 ''' … … 154 154 AND loaded_to_datastore != 1 \ 155 155 AND timestamp > '2011-10-27' \ 156 AND timestamp < now() - INTERVAL 6HOUR"156 AND timestamp < now() - INTERVAL 12 HOUR" 157 157 158 158 ids = [] … … 507 507 508 508 ''' 509 Is someone processing this item right now? Checks whether this was attempted within the last 6HOUR509 Is someone processing this item right now? Checks whether this was attempted within the last 12 HOUR 510 510 ''' 511 511 def processingNow(self, batchType, stage_id): … … 517 517 AND dvo_db = '" + self.config.dvoLabel + "' \ 518 518 AND batch_type != 'IN' \ 519 AND timestamp BETWEEN now() - INTERVAL 6HOUR AND now()"519 AND timestamp BETWEEN now() - INTERVAL 12 HOUR AND now()" 520 520 521 521 try:
Note:
See TracChangeset
for help on using the changeset viewer.
