IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 3, 2011, 4:26:09 PM (15 years ago)
Author:
rhenders
Message:

'printMe()' method moved to bathc base-class; added stuff about IN batches to comments; check that both database connections are valid before proceeding

File:
1 edited

Legend:

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

    r32007 r32019  
    6060                    id)
    6161
    62         batch.printMe()
    6362        batch.run()
    6463
     
    9594ippToPspsDb = IppToPspsDb(logger, configDoc)
    9695
     96# check we connected ok
     97if not gpc1Db.everythingOK: sys.exit(1)
     98if not ippToPspsDb.everythingOK: sys.exit(1)
     99
    97100# get values from the configutaion file
    98101POLLPERIOD = 600
     
    124127Main processing loop:
    125128
    126  1) queues available P2 batches
    127  2) queues available ST batches
    128  3) if in test mode, quits
    129  4) otherwise, waits then repeats from 1
     129 1) creates an IN batch if requested
     130 2) queues available P2 batches (if requested)
     131 3) queues available ST batches (if requested)
     132 4) if in test mode, quits
     133 5) otherwise, waits then repeats from 2
    130134
    131135'''
     
    135139    if QUEUE_IN:
    136140       batch = InitBatch(logger, CONFIG, configDoc, gpc1Db, ippToPspsDb)
    137        batch.printMe()
    138141       batch.run()
    139142       break;
Note: See TracChangeset for help on using the changeset viewer.