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