Ejemplo n.º 1
0
def main():
    hdf = getHDFStore()
    log.info('HDF file is {0}'.format(hdf))
    fetchCallbacks = []
    parseCallbacks = [StationStatusParse( hdf),
                      LineStatusParse( hdf),
                      PredictionSummaryParse( hdf),
                      PredictionDetailedParse( hdf)
                     ]
    cleanupCallbacks = []
    midnightCallbacks = [midnightRollHDF]
    mainLoop(fetchCallbacks, parseCallbacks, cleanupCallbacks, midnightCallbacks)
Ejemplo n.º 2
0
def main():
    fetchCallbacks = []
    parseCallbacks = []
    cleanupCallbacks = [uploadToS3]
    midnightCallbacks = []
    mainLoop(fetchCallbacks, parseCallbacks, cleanupCallbacks, midnightCallbacks)
Ejemplo n.º 3
0
def main():
    fetchCallbacks = [Base()]
    parseCallbacks = []
    cleanupCallbacks = []
    midnightCallbacks = []
    mainLoop(fetchCallbacks, parseCallbacks, cleanupCallbacks, midnightCallbacks)