def _run(self):

        while True:

            try:

                hotCars.tick(tweetLive = self.LIVE)

            except Exception as e:

                import traceback
                tb = traceback.format_exc()
                logger.error("HotCarApp Caught Error! %s\nTraceback:\n%s"%(str(e), tb))

            gevent.sleep(self.SLEEP)
Exemple #2
0
    def _run(self):

        while True:

            try:

                hotCars.tick(tweetLive=self.LIVE)

            except Exception as e:

                import traceback
                tb = traceback.format_exc()
                logger.error("HotCarApp Caught Error! %s\nTraceback:\n%s" %
                             (str(e), tb))

            gevent.sleep(self.SLEEP)
Exemple #3
0
 def runOnce(self, tweetLive=False, log=sys.stdout):
     # Establish connection with the database
     # Run one cycle of the hotcar app
     hotCars.tick(self.db, tweetLive=tweetLive, log=log)
 def runOnce(self, tweetLive=False, log=sys.stdout):
     # Establish connection with the database
     # Run one cycle of the hotcar app
     hotCars.tick(self.db, tweetLive=tweetLive, log=log)