def run(): global _LoopCountRatingsTask stop() interval = maths.interval_to_next_hour() # debug #interval = 5 reactor.callLater(interval, start) lg.out(6, 'ratings.run will start after %s minutes' % str(interval / 60.0))
def run(): global _LoopCountRatingsTask try: from lib import maths except: lg.exc() stop() interval = maths.interval_to_next_hour() # debug #interval = 5 reactor.callLater(interval, start) # @UndefinedVariable if _Debug: lg.out( _DebugLevel, 'ratings.run will start after %s minutes' % str(interval / 60.0))