def __init__(self, pool): logger = get_logger(name = 'taskqueue') super(JsonCalculator,self).__init__(logger = logger) self.controller = Controller(pool).start()
def __call__(self): logger = get_logger('Task') time.sleep(self.delta) logger.info("waited %s seconds" % self.delta)